/testcontainer-jpms

How to use test containers with Java Platform Module System

Primary LanguageJavaMIT LicenseMIT

testcontainer-jpms

How to use test containers with Java Platform Module System

Requirements

  • Maven 3+
  • JDK 17+
  • Docker
  • Git

Getting Started

# Clone this repository
git clone git@github.com:SalathielGenese/testcontainer-jpms.git

# Navigate to project root
cd testcontainer-jpms

# Run test
mvn clean test

Working on Windows?

TestContainer is a tool that help spin Docker containers in our apps.

In this project, the image used is httpd:alpine and therefore, is a Linux-based container.

NOTE: If your Windows' Docker Desktop is not set up to run Linux Containers, you have two options:

src/test/java/name/genese/salathiel/test/testcontainerjpms/HttpdTest.java

License

This project is under MIT license.