java.lang.VerifyError: class com.intellij.junit4.JUnit4TestRunnerUtil$5 覆盖最终方法 getRunner.()Lorg/junit/runner/Runner;

Neh*_*sar 5 java junit intellij-idea intellij-plugin

从 IntelliJ 运行测试用例时 - 面临这个问题。mvn clean install 工作正常。

以前有人遇到过这个问题吗?

Dim*_*non 6

尝试在您的 Maven 项目中使用 JUnit 4 依赖项。 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>
Run Code Online (Sandbox Code Playgroud)