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