Java Reference
In-Depth Information
Listing 15.4. Arquillian DiscountManagerBeanEmbeddedTest
Because you're using Arquillian to run this unit test, it allows you to use more advanced
Java technologies like dependency injection that you're not able to use in the embedded
EJBContainer test. This is great for you as a developer, because using these techno-
logies allows you to concentrate more on the test itself and not on the plumbing to get it
working.
Let's start by looking at @RunWith(Arquillian.class) . @RunsWith is a JUn-
it feature that allows JUnit to hand off execution of the test. In this case, you're telling JUn-
Search WWH ::




Custom Search