🚨 AtomicJar is now part of Docker 🐋! Read the blog

Documentation

Java

Description

Toxiproxy is a framework for simulating network conditions. It’s made specifically to work in testing, CI and development environments, supporting deterministic tampering with connections, but with support for randomized chaos and customization.

Examples

Dependency:
<dependency>
    <groupId>org.testcontainers</groupId>
    <artifactId>toxiproxy</artifactId>
    <version>1.20.0</version>
    <scope>test</scope>
</dependency>
Usage:
var toxiproxy = new ToxiproxyContainer(DockerImageName.parse("ghcr.io/shopify/toxiproxy:2.5.0"));
toxiproxy.start();