java - 如何在使用了 Spring Boot 和 MyBatis 的应用中使用 Mockito 测试 DAO 层
大家讲道理
大家讲道理 2017-04-18 10:08:16
0
2
449
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(2)
阿神

There is no need to use mock使用spring-testDirect connection to the database test. In the unit test environment, transactions will be automatically rolled back and the test data will be cleaned. This is highly accurate and simple.

黄舟

Does the questioner know how to use junit to test this dao layer?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!