The wiremock-extension is a JUnit 5 extension that starts WireMock before running tests and stops it afterwards. It is similar to the WireMockRule (docs) for JUnit 4.
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependency>
<groupId>com.github.JensPiegsa</groupId>
<artifactId>wiremock-extension</artifactId>
<version>0.4.0</version>
<scope>test</scope>
</dependency>
- see
ExampleTest
for further configuration and different use cases.
Feedback is welcome. The source is available on Github. Please report any issues.
Plugin originally created by Jens Piegsa.