0
点赞
收藏
分享

微信扫一扫

java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass


​​welcome to my blog​​

问题描述: 执行测试类报错: 警告: TestEngine with ID ‘junit-jupiter’ failed to execute tests java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.tryToLoadClass(Ljava/lang/String;)

解决方法: 在pom.xml中增加

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>1.4.1</version>
<scope>test</scope>
</dependency>

​​参考​​


举报

相关推荐

0 条评论