'java.lang.VerifyError: class com.intellij.junit4.JUnit4TestRunnerUtil$5 overrides final method getRunner.()Lorg/junit/runner/Runner;
While running test cases from IntelliJ - facing this issue. mvn clean install works fine though.
Anyone faced this issue before ?
Solution 1:[1]
Try to use a JUnit 4 dependency in your maven project. https://mvnrepository.com/artifact/junit/junit/4.12
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
Solution 2:[2]
If has an Annotation @Ignore on Class,this exception will be reported,could comment this annotation.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DimXenon |
Solution 2 | dajidali |