Once all the necessary settings and test classes are ready, you can run the Arquillian tests. This process is just like running any unit tests in your project. For example, with Maven, you can use the following command:
mvn test
Arquillian takes the following steps to run the tests:
- When the test is run, the @org.junit.runner.RunWith(Arquillian.class) annotation present on the test class tells JUnit to invoke Arquillian for running the tests instead of the default runner built into JUnit.
- Arquillian then looks for a public static method annotated with the @org.jboss.arquillian.container.test.api.Deployment annotation in the test class to retrieve the deployable archive.
- In the next step, Arquillian contacts the ...