测试框架

2015-09-19  本文已影响32人  chaofeng

使用spring-boot-starter-test进行集成测试
<pre>
@RunWith(SpringJUnit4ClassRunner.class)
@SpringApplicationConfiguration(value = Application.class)
@WebIntegrationTest(value = {"spring.profiles.active=dev"})
</pre>


使用Mockito进行mocking

Paste_Image.png
Paste_Image.png
上一篇 下一篇

猜你喜欢

热点阅读