Once you have the basic infrastructure ready for running the tests, you can start building the test cases. Add your test classes to the src/test folder in the Maven project structure. The following annotations will help you avail the Arquillian features in your test classes:
- Annotate the class with the @org.junit.runner.RunWith(Arquillian.class) annotation. This tells JUnit to invoke Arquillian for running the tests.
- Designate a public static method to return a deployable archive by annotating it with @org.jboss.arquillian.container.test.api.Deployment. This method should return an org.jboss.shrinkwrap.api.ShrinkWrap.ShrinkWrap archive. ShrinkWrap is an easy way to create deployable archives ...