Summary

This chapter explained the unit testing strategy for the database layer; it provided an example of unit testing in isolation from the database, writing clean JDBC code with Spring, and writing integration tests with database. We also learned about the configured automatic transaction rollback in Spring JDBC integration tests.

You should now be able to unit test the data access layer components in isolation from the database, write neat JDBC code using Spring, and write integration tests using Spring API.

The next chapter covers the service layer and testing legacy code testing.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset