This entry contains necessary information about Testing with Spring. One of the most interesting feature of the Spring Framework is the use of lightweight containers which simplify the testing of an application, whether the usual J2EE container can be more cumbersome to test.
Since there are so many aspects in Spring, I should first present a given overview of the different topics.
Dao Testing
Spring provides different mechanism to simplify testing. In particular there is a class to perform Dao testing by including the transactional aspects. You can easily load your daos using a xml file to initialize the configurations of the database and daos.
NOTE to myself: I hsould give here a code example.
Controller Testing
Here again Spring controller are quite easy to test. They require very little overhead. And the dependency injection provide a very simple setup.