TNG / ArchUnit

A Java architecture test library, to specify and assert architecture rules in plain Java
http://archunit.org
Apache License 2.0
3.18k stars 288 forks source link

Support JUnit Platform 1.10.0 #1159

Closed hankem closed 1 year ago

hankem commented 1 year ago

The new getAncestors() method in TestDescriptor (https://junit.org/junit5/docs/5.10.0/release-notes/) was obviously not available in

class com.tngtech.archunit.junit.internal.AbstractArchUnitTestDescriptor
extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

from org.junit.platform:junit-platform-engine:1.9.x.

Solves #1157

codecholeric commented 1 year ago

Ha, for the first time I remembered that we also have to adjust release_check/archunit-junit5-engine-api.pom :joy: But thanks a lot! I saw the other issue, I guess this is one of those classpath fun times, probably even changing the order of archunit-junit5 and jupiter in the Maven POM would have been sufficient to stop the problem if one is backwards compatible :zany_face: