Supported Runtimes
Open Liberty
Maven Dependency:
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-liberty</artifactId>
<version>0.9.2</version>
</dependency>
Example Dockerfile:
FROM openliberty/open-liberty:full-java17-openj9-ubi
COPY src/main/liberty/config /config/
ADD build/libs/myservice.war /config/dropins
Payara Micro
Maven Dependency:
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-payara-micro</artifactId>
<version>0.9.2</version>
</dependency>
Example Dockerfile:
FROM payara/micro:6.2023.12-jdk21
CMD ["--deploymentDir", "/opt/payara/deployments", "--noCluster"]
ADD build/libs/myservice.war /opt/payara/deployments
Payara Server
Maven Dependency:
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-payara-server</artifactId>
<version>0.9.2</version>
</dependency>
Example Dockerfile:
FROM payara/server-full:6.2023.12-jdk21
ADD target/myservice.war /opt/payara/deployments
Wildfly
Maven Dependency:
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-wildfly</artifactId>
<version>0.9.2</version>
</dependency>
Example Dockerfile:
FROM quay.io/wildfly/wildfly:30.0.1.Final-jdk17
ADD build/libs/myservice.war /opt/jboss/wildfly/standalone/deployments/
Quarkus
INFO: The Quarkus module does not require the application to be tested with a container like the other runtime modules do. Instead, it is mainly used for integrating other services with Quarkus.
Maven Dependency:
<dependency>
<groupId>org.microshed</groupId>
<artifactId>microshed-testing-quarkus</artifactId>
<version>0.9.2</version>
</dependency>
Java test class:
import org.microshed.testing.jupiter.MicroShedTest;
import io.quarkus.test.junit.QuarkusTest;
@MicroShedTest
@QuarkusTest
public class ExampleResourceTest {