O'Reilly logo

Java EE 8 High Performance by Romain Manni-Bucau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required