springboot2整合junit5
整合junit5
1、导入junit5依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
2、编写代码
常用注解见官网文档: junit5官方文档.
3、测试
- 计划任务
- 完成任务
1、导入junit5依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
2、编写代码
常用注解见官网文档: junit5官方文档.
3、测试