Spring5中使用Junit
2019-03-04 本文已影响0人
六年的承诺
1.添加依赖包
(1.)Junit的依赖包(2.)在pom.xml中添加下图



2.编写待测程序
Max类

配置

3.编写程序
Test快捷键(ctrl+shift+T或者alt+enter)
test的路径


4.运行结果
出现绿色表示成功了!!!
1.添加依赖包
(1.)Junit的依赖包(2.)在pom.xml中添加下图
2.编写待测程序
3.编写程序
Test快捷键(ctrl+shift+T或者alt+enter)
4.运行结果
出现绿色表示成功了!!!