首页 > 其他分享 >解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2

解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2

时间:2022-10-29 19:36:39浏览次数:72  
标签:1.5 launcher platform test org junit


解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
解决方案:只需要添加:junit-platform-launcher依赖即可

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>


标签:1.5,launcher,platform,test,org,junit
From: https://blog.51cto.com/gblfy/5806455

相关文章

  • JUnit
    1.简介1.JUnit主要用于来做局部(单元测试)的测试可以快速帮助查找bug2.测试分类:A.黑盒测试主要偏向于(按照需求文档编写测试用例进行测试)功能测试以及接口测试(......
  • 积木报表—JimuReport v1.5.4版本发布,免费的可视化Web报表工具
    项目介绍一款免费的低代码可视化报表,像搭建积木一样在线拖拽设计!低代码开发必备,功能涵盖,数据报表、打印设计、图表报表、大屏设计等!秉承“简单、易用、专业”的产品理念......
  • 【面试高频题】难度 1.5/5,常规滑动窗口运用题
    题目描述这是LeetCode上的2024.考试的最大困扰度,难度为中等。Tag:「滑动窗口」、「双指针」一位老师正在出一场由 道判断题构成的考试,每道题的答案为​​​true......
  • JUnit测试单元进行函数测试时不能使用Scanner的解决方案
    方案一:1.在idea的安装目录里面的bin目录下找到 idea64.exe.vmoptions 文件2.编辑该文件,在文件末尾加上如下指令-Deditable.java.test.console=true 3.重启i......
  • JKD1.5之后利用关键字Enum来创建枚举类
    JDK1.5之后使用Enum关键字创建枚举类 变成下面的枚举类 packagecom.msb.enum02;/***开发人:liu*日期:16:01:37*描述:定义枚举类:季节*版本:1.0*/......
  • 单元测试JunitTest加@Transactional事务自动回滚
    问题测试事务传播行为的时候,在使用单位测试加了@Transactional,一开始是正常,后面出现了异常,即使没有报错的情况下,事务也会自动回滚代码 @Test @Transactional ......
  • programmer remote jobs platform All In One
    programmerremotejobsplatformAllInOne程序员远程工作平台汇总X-TeamSince2006,X-Teamhasprovidedtheworld'sleadingbrandswithhigh-performing,on-......
  • 没有Junit的情况下如何测试
    在没有使用Junit的时候,缺点:(1)测试一定走main方法,是程序的入口,main方法的格式必须不能写错。(2)要是在同一个方法中测试的话,那么不需要测试的东西必须注释掉。(3)测试逻辑如果......
  • 2021.5.15 参考答案
      PartIReadingComprehension(30%)1.D.theysometimesseeeachotherascompetitors2.D.Thepandemichasincreasedthetoughnessforsiblingstogetalon......
  • Java开发学习(三十八)----SpringBoot整合junit
    先来回顾下 Spring整合junit@RunWith(SpringJUnit4ClassRunner.class)@ContextConfiguration(classes=SpringConfig.class)publicclassUserServiceTest{  ......