1.添加依赖包
(1.)Junit的依赖包(2.)在pom.xml中添加下图



2.编写待测程序
Max类

配置

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


4.运行结果。
出现绿色即成功。
1.添加依赖包
(1.)Junit的依赖包(2.)在pom.xml中添加下图
2.编写待测程序
Max类
配置
3.编写程序
Test快捷键(ctrl+shift+T或者alt+enter)
test的路径
4.运行结果。
出现绿色即成功。
本文标题:Spring5中使用Junit
本文链接:https://www.haomeiwen.com/subject/gldlvqtx.html
网友评论