Normally failed requests fail the test but they're suppressed for some
reason (e.g. in async callback) then verify should still correctly
report the failures.
Closes gh-21799
@ -49,6 +52,8 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
@@ -49,6 +52,8 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
@ -91,6 +96,10 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
@@ -91,6 +96,10 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
expectation=matchRequest(request);
}
}
catch(Throwableex){
this.requestFailures.put(request,ex);
throwex;
}
finally{
this.requests.add(request);
}
@ -129,7 +138,8 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
@@ -129,7 +138,8 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
thrownewUnsupportedOperationException("It looks like neither the deprecated \"validateRequestInternal\""+
thrownewUnsupportedOperationException(
"It looks like neither the deprecated \"validateRequestInternal\""+
"nor its replacement (this method) are implemented.");
}
@ -148,6 +158,12 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect
@@ -148,6 +158,12 @@ public abstract class AbstractRequestExpectationManager implements RequestExpect