public Expectation [ ] retrieveRecordedExpectations ( HttpRequest httpRequest ) { String recordedExpectations = retrieveRecordedExpectations ( httpRequest , Format . JSON ) ; if ( ! Strings . isNullOrEmpty ( recordedExpectations ) && ! recordedExpectations . equals ( "[]" ) ) { return expectationSerializer . deserializeArray ( recordedExpectations ) ; } else { return new Expectation [ 0 ] ; } }
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