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

YouTrack | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    JUnit Jupiter SNAPSHOT changed the DiscoverySelectors API

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

    Root Cause Analysis

    1. 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()
    2. com.intellij.junit5
      JUnit5IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit5.JUnit5TestRunnerUtil.buildRequest(JUnit5TestRunnerUtil.java:59)
      2. com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:39)
      2 frames
    3. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
      1 frame