4 April 2014

Arquillian Testing

Arquillian tests are quite useful as alternatives to mocking especially for in-container testing where one needs to do a full component test end-to-end at runtime, most aptly appropriate for JEE environments. It builds on JUnit and TestNG. It is amazingly good for integration testing and is portable across multiple environments and containers allowing one to control each run mode through in-process invocation or through remote client. This is also faciliated with multiple ways of injection on fields and methods with annotations. Additionally, one can utilize the shrinkwrap to declaratively define an archive that encapsulates the tests and resources. One can use the arquillian to package the shrinkwrap to deploy and run in the container which will then execute the tests and provide the captured results as it remotely communicates with the server.