光阴似箭催人老,日月如移越少年。
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.
mock
spring-test
Does the questioner know how to use junit to test this dao layer?
There is no need to use
mock
使用spring-test
Direct 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?