Skip to main content

Testing

  • Chapter
  • First Online:
Pro JPA 2
  • 803 Accesses

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.

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 39.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

© 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

Publish with us

Policies and ethics