Registry / testing / wiremock-jre8

wiremock-jre8

JSON →
library3.0.1javamavenunverified

A flexible API mocking tool for HTTP-based services, supporting stubbing and verification.

<dependency> <groupId>com.github.tomakehurst</groupId> <artifactId>wiremock-jre8</artifactId> <version>3.0.1</version> </dependency>
INSTALL
IMPORT
SIG · WIREMOCK-JRE8
W
wiremock-jre8
testingjavav3.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WireMockServer
com.github.tomakehurst.wiremock.WireMockServer

Starts a WireMock server and stubs a GET endpoint.

import com.github.tomakehurst.wiremock.WireMockServer; import static com.github.tomakehurst.wiremock.client.WireMock.*; WireMockServer server = new WireMockServer(8080); server.start(); stubFor(get(urlEqualTo("/api")).willReturn(aResponse().withBody("Hello")));
Debug
Known issues
breakingWireMock 3.x uses JRE8; for JRE11+ use wiremock standalone.
fix
Use wiremock-standalone for JRE11+ or wiremock-jre8 for JRE8.
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
wiremock-jre8 — mvn dependency:get wiremock-jre8 · libregistry