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>
参考