【SpringBoot单元测试遇到的问题】Failed to resolve org.junit.platform:junit-platform-launcher+Empty test suite

2023-05-16

报错信息1

Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2

这个问题,我换成手机热点就可以了,可能是网络问题。。。

报错信息2

Process finished with exit code 0
Empty test suite.

改前

@Test
 private void contextLoads() {
      //此处省略测试内容
  }

在这里插入图片描述

改后

@Test
 public void contextLoads() {
      //此处省略测试内容
  }

在这里插入图片描述

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

【SpringBoot单元测试遇到的问题】Failed to resolve org.junit.platform:junit-platform-launcher+Empty test suite 的相关文章

随机推荐