private void allowingRequestMatcherReturns(final boolean returnValue) {
expectation.addRequestMatcher(requestMatcherReturning(returnValue));
}
private Matcher<FakeHttpServletRequest> requestMatcherReturning(final boolean returnValue) {
return new RequestMatcher() {
@Override
public void describeTo(Description paramDescription) {
paramDescription.appendText("request matcher returning " + returnValue);
}