Abstract
One of the major selling points of Jakarta Persistence 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 covers unit testing and integration testing with entities, with a mix of modern and traditional test techniques.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
Visit http://jakarta.apache.org/cactus/ for more information.
- 2.
- 3.
- 4.
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.
- 5.
Visit http://dbunit.sourceforge.net/ for more information.
- 6.
See the setRollbackOnly() method on the EJBContext interface.
- 7.
- 8.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Jungmann, L., Keith, M., Schincariol, M., Nardone, M. (2022). Testing. In: Pro Jakarta Persistence in Jakarta EE 10. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7443-9_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-7443-9_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7442-2
Online ISBN: 978-1-4842-7443-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)