public static void addHttpResponseRule ( RequestMatcher requestMatcher , List < ? extends HttpResponse > responses ) { getFakeHttpLayer ( ) . addHttpResponseRule ( requestMatcher , responses ) ; }
Adds an HTTP response rule . For each time the rule is matched responses will be shifted off the list and returned . When all responses have been given and the rule is matched again an exception will be thrown .