Unit testing – how to use JUnit and Hibernate effectively?
•
Java
I want to use JUnit to test hibernate code, such as insert, update, delete Methods and transaction management
But I don't know how to effectively apply hibernate unit testing and what I should test with hibernate
How do I test Dao methods?
I hope you can give me some guidance!
Solution
You can use Dbunit to test Dao layer Because you need test data
File hibernate testing with Dbunit and Hibernate
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码