Arquillian and ContiPerf – the diabolic pair

In the JMH section, we got the issue that starting a container was sometimes hard and really not straightforward. As ContiPerf is a rule, it is compatible with Arquillian, which can do all that work for you.

Arquillian is a project created by JBoss (Red Hat, now) for abstracting the containers behind a service provider interface (SPI) and integrating it with JUnit or TestNG. The idea is to run a test from your IDE as usual, without having to care about needing a container.

At a high level, it requires you to define what you deploy into the container and to use the Arquillian runner with JUnit (or an abstract class with TestNG). Thanks to a mechanism of extensions and enrichers, you can inject most ...

Get Java EE 8 High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.