Java Reference
In-Depth Information
Listing 2.3. Stateful session bean client
The @RunWith annotation tells JUnit to run Arquillian as part of the test. Arquillian
controls the lifecycle of the embedded EJB container behind the scenes—it starts the con-
tainer before the unit test starts and shuts it down when the unit test ends. Arquillian then
deploys the components under testing to the embedded container—we've omitted the code
that makes the deployment happen, but you can find it in the code samples. Arquillian is
also responsible for injecting the ordering processor into the test
, along with any other
required dependencies.
Search WWH ::




Custom Search