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.
This extension is in an early alpha state. API might change at any time.
<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.1.2</version>
</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.