Start
Installation
Add the library in test scope, keep Spring versions managed by your normal BOM, then declare the topics your suite needs.
Maven
pom.xml
<dependency>
<groupId>io.typecheck</groupId>
<artifactId>wiretap-spring-boot</artifactId>
<version>5.2.3</version>
<scope>test</scope>
</dependency>Gradle
build.gradle.kts
dependencies {
testImplementation("io.typecheck:wiretap-spring-boot:5.2.3")
}Requirements
- Java 17 or newer
- Spring Boot 4.0 or newer
- Spring Kafka 4.0 or newer
- JUnit Jupiter
First configuration
Most suites start by declaring a shared topic list in test properties. Move to a YAML or JSON topic file when topics need different partition counts.
src/test/resources/application.properties
wiretap.test.topics=orders,payments,notifications
wiretap.test.partitions=2