java.lang.NoSuchMethodError: org.junit.platform.engine.discovery.DiscoverySelectors.selectPackage(Ljava/lang/String;)Lorg/junit/platform/engine/discovery/PackageSelector;


Solutions on the web

Solution icon of youtrack
via YouTrack by Unknown author, 1 year ago
org.junit.platform.engine.discovery.DiscoverySelectors.selectPackage(Ljava/lang/String;)Lorg/junit/platform/engine/discovery/PackageSelector;

Solution icon of github
via GitHub by i-schuetz
, 1 month ago
org.junit.platform.engine.discovery.DiscoverySelectors.selectNames(Ljava/util/Collection;)Ljava/util/List;

Solution icon of github
via GitHub by i-schuetz
, 1 week ago
org.junit.platform.engine.discovery.DiscoverySelectors.selectNames(Ljava/util/Collection;)Ljava/util/List;

Stack trace

java.lang.NoSuchMethodError: org.junit.platform.engine.discovery.DiscoverySelectors.selectPackage(Ljava/lang/String;)Lorg/junit/platform/engine/discovery/PackageSelector;
	at com.intellij.junit5.JUnit5TestRunnerUtil.buildRequest(JUnit5TestRunnerUtil.java:59)
	at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:39)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.