Arquillian is not a library like JUnit or TestNG, but it integrates with these for running the tests. You can use it for running tests in an IDE or as part of your builds, using tools like Maven. It provides a framework for running tests against an application server using a supported container. Let's write our tests using JUnit and Arquillian put together, considering that we want to test our service code running under a container.
We will need to update IMS Comments pom.xml to add the additional support for Arquillian:
<dependencyManagement> <dependencies> <dependency> <groupId>org.jboss.arquillian</groupId> <artifactId>arquillian-bom</artifactId> <version>1.1.15.Final</version> <scope>import</scope> ...