Springboot webController UnitTest
Springboot webController UnitTest
how to test web api in unit test?
– use mockMVC and springbootTest
@RunWith(SpringRunner.class)
@SpringBootTest
@EnableWebMvc
@AutoConfigureMockMvc
public class WebServiceTest extends TestCase {
@Resource
priva
原创
2020-05-28 14:26:02 ·
231 阅读 ·
0 评论