SpringBoot 整合 Junit 单元测试
1. pom.xml Eclipse创建时需要手动加依赖坐标 <!- 添加 junit 环境的 jar 包 -> <depndency> <groupId>org.springframework.bot</groupId> <artifactId>spring-bot-starter-te…
659
|
|
|
|
127 字
|
3 分钟
JUnit-单元测试的简单使用
1. 安装JUnit File-->settings-->Plguins-->Browse repositories-->输入JUnit-->选择JUnit Generator V2.0安装 2. 配置test文件夹 3. 使用 import org.junit.Test; public class TestJUnit…
511
|
|
|
|
30 字
|
1 分钟内