首页 > 编程语言 > 详细

Junit整合Springboot

时间:2019-04-07 18:10:55      阅读:109      评论:0      收藏:0      [点我收藏+]

在测试类上加注解

@RunWith(SpringRunner.class)    //替代junit原生的运行器
@SpringBootTest(classes = RabbitmqApplication.class)

在测试方法上加

@Test

 

Junit整合Springboot

原文:https://www.cnblogs.com/naixin007/p/10666161.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!