从 IntelliJ 运行测试用例时 - 面临这个问题。不过,mvn clean install 工作正常。
以前有人遇到过这个问题吗?
最佳答案
尝试在您的 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>
关于java.lang.VerifyError : class com. intellij.junit4.JUnit4TestRunnerUtil$5 覆盖 final方法 getRunner.()Lorg/junit/runner/Runner;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53512970/