Skip to content

Conversation

@rajadilipkolli
Copy link
Contributor

@rajadilipkolli rajadilipkolli commented Feb 22, 2018

After upgrading to 2.0.0.RC2 , we are receiving below error

WARNING: TestEngine with ID 'junit-jupiter' failed to discover tests
java.lang.NoSuchMethodError: org.junit.platform.engine.support.filter.ClasspathScanningSupport.buildClassFilter(Lorg/junit/platform/engine/EngineDiscoveryRequest;Ljava/util/function/Predicate;)Lorg/junit/platform/commons/util/ClassFilter;
        at org.junit.jupiter.engine.discovery.DiscoverySelectorResolver.resolveSelectors(DiscoverySelectorResolver.java:49)

This is happening because junit-jupiter version 5.1.0 is not compatible with 1.0.3 version of junit-platform .To resolve this junit-platform should be upgraded to 1.1.0

After upgrading to 2.0.0.RC2 , we are receiving below error 
```
WARNING: TestEngine with ID 'junit-jupiter' failed to discover tests
java.lang.NoSuchMethodError: org.junit.platform.engine.support.filter.ClasspathScanningSupport.buildClassFilter(Lorg/junit/platform/engine/EngineDiscoveryRequest;Ljava/util/function/Predicate;)Lorg/junit/platform/commons/util/ClassFilter;
        at org.junit.jupiter.engine.discovery.DiscoverySelectorResolver.resolveSelectors(DiscoverySelectorResolver.java:49)
```

To resolve this junit-platform should be upgraded to 1.1.0
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 22, 2018
@wilkinsona wilkinsona self-assigned this Feb 22, 2018
@wilkinsona wilkinsona added this to the 2.0.0 milestone Feb 22, 2018
@wilkinsona wilkinsona added type: dependency-upgrade A dependency upgrade priority: normal and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 22, 2018
wilkinsona added a commit that referenced this pull request Feb 22, 2018
* gh-12172:
  Upgrade to JUnit Platform 1.1.0
@rajadilipkolli rajadilipkolli deleted the patch-1 branch February 22, 2018 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: dependency-upgrade A dependency upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants