Skip to content

Commit

Permalink
Revert junit bump to 5.3. Restore 5.2.
Browse files Browse the repository at this point in the history
Because changes introduced as part of junit-team/junit5#1499
new junit is not compatible in a way with surefire test runner and its impossible now to
invoke single test using -Dtest option.

Exception that we get when we do that with new junit version is something like:
java.lang.NoSuchMethodError: org.junit.platform.engine.support.descriptor.MethodSource.from(Ljava/lang/Class;Ljava/lang/reflect/Method;)Lorg/junit/platform/engine/support/descriptor/MethodSource;
 	at org.junit.vintage.engine.descriptor.VintageTestDescriptor.toMethodSource(VintageTestDescriptor.java:155)
 	at org.junit.vintage.engine.descriptor.VintageTestDescriptor.toTestSource(VintageTestDescriptor.java:138)
 	at org.junit.vintage.engine.descriptor.VintageTestDescriptor.<init>(VintageTestDescriptor.java:54)
 	at org.junit.vintage.engine.discovery.TestClassRequestResolver.addChildrenRecursively(TestClassRequestResolver.java:110)
 	at org.junit.vintage.engine.discovery.TestClassRequestResolver.createCompleteRunnerTestDescriptor(TestClassRequestResolver.java:93)
 	at org.junit.vintage.engine.discovery.TestClassRequestResolver.determineRunnerTestDescriptor(TestClassRequestResolver.java:64)
 	at org.junit.vintage.engine.discovery.TestClassRequestResolver.createRunnerTestDescriptor(TestClassRequestResolver.java:59)
  • Loading branch information
MishaDemianenko committed Sep 5, 2018
1 parent 211f29e commit 10812b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -96,7 +96,7 @@
<scala.target.vm>1.8</scala.target.vm>
<scala.java.additional.args/>
<jersey.version>1.19.3</jersey.version>
<junit.version>5.3.0</junit.version>
<junit.version>5.2.0</junit.version>
<currentYear>2018</currentYear>
<cypher.compatibility.23>2.3.12</cypher.compatibility.23>
<cypher.compatibility.31>3.1.9</cypher.compatibility.31>
Expand Down

0 comments on commit 10812b4

Please sign in to comment.