Payara Micro Managed Arquillian Container
The Payara Micro Managed Arquillian container provides a managed Payara Micro instance for integration testing.
Usage
The Payara Micro Managed Arquillian container can be found on Maven Central, and can be included in your project using the following Maven coordinates:
<dependency>
<groupId>fish.payara.arquillian</groupId>
<artifactId>arquillian-payara-micro-managed</artifactId>
<version>${version}</version>
</dependency>
You can find the latest artifact version from here.
Configuring the Container
The following configuration options are available, each of which can be provided through the specified system properties or environment variables:
Option | Description | System Property | Environment Variable | Default |
---|---|---|---|---|
|
Provides the location of the Payara Micro Community Jar. |
|
|
|
|
Specifies the amount of time in seconds that the container will wait for Payara Micro Community to start. |
|
|
|
|
Randomises the initial HTTP port of Payara Micro Community. This saves time by avoiding collisions with the default port. |
|
|
|
|
Enables the |
|
|
|
|
Enables clustering on the Micro instance. |
|
|
|
|
Enables/disables console output on the Micro instance. |
|
|
|
|
Enables debugging on the Micro instance. By default Payara Micro Community will
wait for the debugger on port |
|
|
|
|
Provides additional options to the Java process running the Micro instance (I.e. between |
|
|
|
|
Provides additional options to the Micro instance (I.e. at the end of the command.). |
|
|
|
These options can all be provided through either an environment variable or system property. The easiest way to provide these to the test instance is through the surefire plugin.
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<payara.microJar>/path/to/micro.jar</payara.microJar>
</systemProperties>
</configuration>
</plugin>