Skip to main content

Testing

  • Chapter
  • First Online:
Pro JPA 2 in Java EE 8

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 covers unit testing and integration testing with entities, with a mix of modern and traditional test techniques.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Visit http://jakarta.apache.org/cactus/ for more information.

  2. 2.

    http://arquillian.org

  3. 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. 4.

    Visit http://dbunit.sourceforge.net/ for more information.

  5. 5.

    See the setRollbackOnly() method on the EJBContext interface.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Mike Keith, Merrick Schincariol, Massimo Nardone

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Keith, M., Schincariol, M., Nardone, M. (2018). Testing. In: Pro JPA 2 in Java EE 8. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3420-4_15

Download citation

Publish with us

Policies and ethics