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
if (isNotBlank(serverVersion) && isNotBlank(clientVersion) && !clientVersion.equals(serverVersion)) {
174
174
thrownewClientException("Client version \"" + clientVersion + "\" does not match server version \"" + serverVersion + "\"");
175
175
}
176
176
}
177
177
178
178
returnresponse;
179
179
} catch (RuntimeExceptionrex) {
180
-
if (!Strings.isNullOrEmpty(rex.getMessage()) && (rex.getMessage().contains("executor not accepting a task") || rex.getMessage().contains("loop shut down"))) {
180
+
if (isNotBlank(rex.getMessage()) && (rex.getMessage().contains("executor not accepting a task") || rex.getMessage().contains("loop shut down"))) {
181
181
thrownewIllegalStateException(this.getClass().getSimpleName() + " has already been closed, please create new " + this.getClass().getSimpleName() + " instance");
182
182
} else {
183
183
throwrex;
@@ -408,6 +408,40 @@ public String retrieveRecordedRequests(HttpRequest httpRequest, Format format) {
408
408
returnhttpResponse.getBodyAsString();
409
409
}
410
410
411
+
/**
412
+
* Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests
413
+
*
414
+
* @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
415
+
* @return an array of all requests that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
* Retrieve the recorded requests that match the httpRequest parameter, use null for the parameter to retrieve all requests
428
+
*
429
+
* @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
430
+
* @param format the format to retrieve the expectations, either JAVA or JSON
431
+
* @return an array of all requests that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
* Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
413
447
*
@@ -416,7 +450,7 @@ public String retrieveRecordedRequests(HttpRequest httpRequest, Format format) {
0 commit comments