JBoss Community Archive (Read Only)

Arquillian Old

ShrinkWrap packaging

When the Arquillian test runner processes a test class, the first thing it does is retrieve the definition of the Java archive from the @Deployment method, appends the test class to the archive and packages the archive using ShrinkWrap.

The name of the archive is irrelevant, so the base name "test" is typically choosen (e.g., test.jar, test.war). Once you have created the shell of the archive, the sky is really the limit of how you can assemble it. You are customizing the layout and contents of the archive to suit the needs of the test. Essentially, you creating a micro application in which to execute the code under test.

You can add the following artifacts to the test archive:

Consult the ShrinkWrap API to discover all the options you have available for constructing the test archive.

JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-10 12:20:14 UTC, last content change 2011-04-16 11:58:23 UTC.