Abstract
One of the major selling points of JPA has been the drive toward better testability. The use of plain Java classes and the ability to use persistence outside of the application server has made enterprise applications much easier to test. This chapter will cover unit testing and integration testing with entities, with a mix of modern and traditional test techniques.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Visit http://jakarta.apache.org/cactus/ for more information.
- 2.
- 3.
Alur, Deepak, John Crupi, and Dan Malks. Core J2EE Patterns: Best Practices and Design Strategies, Second Edition. Upper Saddle River, N.J.: Prentice Hall PTR, 2003, p. 315.
- 4.
Visit http://dbunit.sourceforge.net/ for more information.
- 5.
See the setRollbackOnly() method on the EJBContext interface
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Mike Keith
About this chapter
Cite this chapter
Keith, M., Schincariol, M. (2013). Testing. In: Pro JPA 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-4927-6_15
Download citation
DOI: https://doi.org/10.1007/978-1-4302-4927-6_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-4926-9
Online ISBN: 978-1-4302-4927-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books