You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WireMocha 1.0.12 introduced a new gutter icon with which HTTP Client requests can be generated from Java method calls. That feature is limited to endpoints that don't require complex requests.
Tasks
Introduce gutter icons for more endpoints.
Generate path and query parameters, as well as JSON request bodies from Java code. This will probably require two things:
A standardized way of converting Java based stubbing to JSON.
A way to handle live template generation besides the current "static" live templates used.
POST http://<host>:<port>/__admin/requests/count
{
"method": "POST",
"url": "/verify/this"
}
WireMock.getAllServeEvents(ServeEventQuery.ALL_UNMATCHED) GET http://localhost:8080/__admin/requests?unmatched=true
WireMock.getAllServeEvents(ServeEventQuery.forStubMapping(myStubId)) GET http://localhost:8080/__admin/requests?matchingStub=59651373-6deb-4707-847c-9e8caf63266e
??? GET http://localhost:8080/__admin/requests?since=2016-06-06T12:00:00&limit=3
Summary
WireMocha 1.0.12 introduced a new gutter icon with which HTTP Client requests can be generated from Java method calls. That feature is limited to endpoints that don't require complex requests.
Tasks
Candidates
Stubbing
stubFor(get(urlEqualTo("/some/thing"))
WireMock.saveAllMappings() //with empty body
POST http://<host>:<port>/__admin/mappings/save
wireMockServer.editStub(get(urlEqualTo("/edit-this"))
WireMock.reset() //empty body
POST http://<host>:<port>/__admin/reset
DELETE http://<host>:<port>/__admin/mappings
WireMock.importStubs(stubImport()...)
Verification
WireMock.verify(postRequestedFor(urlEqualTo("/verify/this")))
WireMock.getAllServeEvents(ServeEventQuery.ALL_UNMATCHED)
GET http://localhost:8080/__admin/requests?unmatched=true
WireMock.getAllServeEvents(ServeEventQuery.forStubMapping(myStubId))
GET http://localhost:8080/__admin/requests?matchingStub=59651373-6deb-4707-847c-9e8caf63266e
???
GET http://localhost:8080/__admin/requests?since=2016-06-06T12:00:00&limit=3
WireMock.findAll(putRequestedFor(urlMatching("/api/.*")))
removeServeEvents(putRequestedFor(urlMatching("/api/.*").withHeader("X-Trace-Id", equalTo("123"))));
WireMock.removeEventsByStubMetadata(matchingJsonPath("$.tags[0]", equalTo("test-57")));
WireMock.findNearMissesFor(myLoggedRequest)
WireMock.findNearMissesFor(getRequestedFor(urlEqualTo("/thing-url")));
Record and playback
startRecording(recordSpec())
???
The text was updated successfully, but these errors were encountered: