Documentation

Java

Community Module

These modules are maintained by the community, outside of the Testcontainers project.

Description

This is a lightweight rewrite of the abandoned MockServer - which allows you to mock any server or service via HTTP, such as a REST or RPC service - with focus on simplicity, maintainability and Testcontainers.

Examples

Dependency:
<dependency>
      <groupId>software.xdev.mockserver</groupId>
      <artifactId>testcontainers</artifactId>
      <version>1.0.2</version>
      <scope>test</scope>
</dependency>
Usage:
# Version is discovered automatically
var mockServer = new MockServerContainer();
mockServer.start();