对maven工程进行junit4单元测试
首先在pom.xml添加依赖jar包
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12/version>
<scope>test</scope>
</dependency>
1在src下新建test文件
对maven工程进行junit4单元测试
首先在pom.xml添加依赖jar包
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12/version>
<scope>test</scope>
</dependency>