-
Notifications
You must be signed in to change notification settings - Fork 1
Home
JICUnit is a Java testing framework for JEE in-container testing based on JUnit. JICUnit is inspired by JUnitEE/JUnitEEv2 and Jakarta Cactus, both which are not developed any more.
In short the JUnit tests are packaged in a test WAR and deployed to the JEE container.
JICUnit has a JUnit test runner in the container just like JUnitEE and Cactus. It also has a Maven plugin that generates additional files which must be included in the test WAR. And finally it has an Eclipse plugin which makes it possible to run the tests from Eclipse just like a unit test, but the tests are executed in the container. The Eclipse plugin is really only a convenient way to set the system property.
To run in-container tests from a phase in Maven just use Surefire or Failsafe plugins with an extra system property (a URL) that points to the server where the test WAR is deployed.
The JICUnit framework also has a web GUI front end for the runner. It is implemented with JSF 2.0 and PrimeFaces and depends on EJB3, CDI and Servlet 3.0. The JICUnit framework is actually a web fragment.