Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 574
Neha Bhavsar Avatar asked Nov 28 '18 05:11

Neha Bhavsar


1 Answers

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>
like image 177
DimXenon Avatar answered Nov 15 '22 04:11

DimXenon