When running tests with Arquillian, you can:
- alter the deployment at the test level (in the method annotated with
- alter the deployment globally
To alter the deployment globally, one can use various archive processors. E.g.
To install an archive processor, you should create a custom implementation of
org.jboss.arquillian.core.spi.LoadableExtension and register it as a service.
To register a service, create a file called
org.jboss.arquillian.core.spi.LoadableExtension in META-INF/services (e.g. src/test/resources/META-INF/services for maven) and enter a fully qualified name of the implementation class into the file.
Some more info can be found in the arquillian docs: http://arquillian.org/guides/developing_a_container_adapter/