use of com.github.tomakehurst.wiremock.verification.FindNearMissesResult in project wiremock by wiremock.
the class FindNearMissesForRequestPatternTask method execute.
@Override
public ResponseDefinition execute(Admin admin, Request request, PathParams pathParams) {
RequestPattern requestPattern = Json.read(request.getBodyAsString(), RequestPattern.class);
FindNearMissesResult nearMissesResult = admin.findTopNearMissesFor(requestPattern);
return ResponseDefinition.okForJson(nearMissesResult);
}
use of com.github.tomakehurst.wiremock.verification.FindNearMissesResult in project wiremock by wiremock.
the class FindNearMissesForRequestTask method execute.
@Override
public ResponseDefinition execute(Admin admin, Request request, PathParams pathParams) {
LoggedRequest loggedRequest = Json.read(request.getBodyAsString(), LoggedRequest.class);
FindNearMissesResult nearMissesResult = admin.findTopNearMissesFor(loggedRequest);
return ResponseDefinition.okForJson(nearMissesResult);
}
Aggregations