JBoss Community Archive (Read Only)

Arquillian Old

Anatomy of a test

In both JUnit 4 and TestNG 5, a test case is a class which contains at least one test method. The test method is designated using the @Test annotation from the respective framework. An Arquillian test case looks just like a regular JUnit or TestNG test case with two declarative enhancements:

With those two modifications in place, the test is recognized by the Arquillian test runner and will be executed in the target container. It can also use the extra functionality that Arquillian provides—namely container resource injections and the injection of beans.

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:57:56 UTC.