Abstract
This chapter introduced some testing strategies for Spring applications. Of course, you can do a lot more to test with both JUnit and Spring, not to mention the really powerful testing constructs that are made possible by the mocking frameworks we mentioned. Also, topics such as performance testing and load testing are extremely relevant to persistence.
For more advanced integration testing with databases, we recommend you check out the DbUnit JUnit extension. DbUnit provides excellent facilities for ensuring that your database is in a known state in between tests, as well as tooling to aid in assembling fixture data that can be used across an entire suite of tests.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Editor information
Rights and permissions
Copyright information
© 2010 Paul Tepper Fisher and Brian D. Murphy
About this chapter
Cite this chapter
Fisher, P.T., Murphy, B.D. (2010). Effective Testing. In: Anglin, S., et al. Spring Persistence with Hibernate. Apress. https://doi.org/10.1007/978-1-4302-2633-8_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-2633-8_8
Publisher Name: Apress
Print ISBN: 978-1-4302-2632-1
Online ISBN: 978-1-4302-2633-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)