Child pages
  • TomEE Container
Skip to end of metadata
Go to start of metadata

The TomEE container adapts org.apache.tomee.embedded.Container to the Pax Exam test container API.

This is the lifecycle of the TomEE container:

  1. If the directory configured in pax.exam.tomee.config.dir (defaulting to src/test/resources/tomee-config) contains a tomee.xml file, then this file is used to configure the embedded TomEE server.
  2. The embedded server is started.
  3. A WAR probe is built and deployed. This probe contains all test classes and their dependencies.
  4. All tests contained in the probe are executed within the container.
  5. All Java EE modules (including the WAR probe) are undeployed.
  6. The embedded server is stopped.

If you require any additional libraries for the server or domain class loader (e.g. JDBC drivers), simply add them to the classpath of your project.

  • No labels