mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public Expectation[] retrieveActiveExpectations(HttpRequest httpRequest) {
        String activeExpectations = retrieveActiveExpectations(httpRequest, Format.JSON);
        if (isNotBlank(activeExpectations) && !activeExpectations.equals("[]")) {
            return expectationSerializer.deserializeArray(activeExpectations, true);
        } else {
            return new Expectation[0];
        }
    }
/**
     * Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
     *
     * @param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
     * @return an array of all expectations that have been setup and have not expired
     */
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
@param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
@return an array of all expectations that have been setup and have not expired
Retrieve the active expectations match the httpRequest parameter use null for the parameter to retrieve all expectations @param httpRequest the http request that is matched against when deciding whether to return each expectation use null for the parameter to retrieve for all requests @return an array of all expectations that have been setup and have not expired
public Expectation[] retrieveActiveExpectations(HttpRequest httpRequest) {
        String activeExpectations = retrieveActiveExpectations(httpRequest, Format.JSON);
        if (isNotBlank(activeExpectations) && !activeExpectations.equals("[]")) {
            return expectationSerializer.deserializeArray(activeExpectations, true);
        } else {
            return new Expectation[0];
        }
    }
public Expectation [ ] retrieveActiveExpectations ( HttpRequest httpRequest ) { String activeExpectations = retrieveActiveExpectations ( httpRequest , Format . JSON ) ; if ( isNotBlank ( activeExpectations ) && ! activeExpectations . equals ( "[]" ) ) { return expectationSerializer . deserializeArray ( activeExpectations , true ) ; } else { return new Expectation [ 0 ] ; } }
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
 @param httpRequest the http request that is matched against when deciding whether to return each expectation, use null for the parameter to retrieve for all requests
 @return an array of all expectations that have been setup and have not expired
Retrieve the active expectations match the httpRequest parameter use null for the parameter to retrieve all expectations @param httpRequest the http request that is matched against when deciding whether to return each expectation use null for the parameter to retrieve for all requests @return an array of all expectations that have been setup and have not expired