问题:在IDEA里面运行单元测试代码,报错:Exception in thread “main” java.lang.VerifyError: class com.intellij.junit4.JUnit4TestRunnerUtil$5 overrides final method getRunner.()Lorg/junit/runner/Runner;
原因:pom.xml的依赖配置有问题,我使用的是JDK1.8运行环境
解决:把图一的junit依赖改为图二就可以啦
问题:在IDEA里面运行单元测试代码,报错:Exception in thread “main” java.lang.VerifyError: class com.intellij.junit4.JUnit4TestRunnerUtil$5 overrides final method getRunner.()Lorg/junit/runner/Runner;
原因:pom.xml的依赖配置有问题,我使用的是JDK1.8运行环境
解决:把图一的junit依赖改为图二就可以啦