Description
MockServer allows you to mock any server or service via HTTP or HTTPS, such as a REST or RPC service.Examples
Dependency:
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>mockserver</artifactId>
<version>1.20.0</version>
<scope>test</scope>
</dependency>
Usage:
var mockServer = new MockServerContainer(DockerImageName
.parse("mockserver/mockserver:5.15.0"));
mockServer.start();
Dependency:
go get github.com/testcontainers/testcontainers-go/modules/mockserver
Usage:
mockServerContainer, err := mockserver.Run(ctx, "mockserver/mockserver:5.15.0")