How should I unit test Spring, Hibernate and Struts use junit

What is the best practice? How to implement it so that the database is not polluted?

+3
source share
3 answers

If you want to perform integration tests of code that accesses the database, you can use DBUnit . DBUnit can load test data into the database before each test. This can help compare the result of the test case with the expected set of values.

+3
source

- spring, hibernate maven. maven .

Struts ( Structs, ) struts/ spring. StrutsTestCase StrutsUT

+3
+2
source

Source: https://habr.com/ru/post/1736073/


All Articles