Handle errors via AsyncListener

This is a limited backport of commit #e0678b mainly providing the fix without
exposing the onError callbacks.

Issue: SPR-16058
This commit is contained in:
Rossen Stoyanchev
2017-11-08 23:10:16 -05:00
parent 5867ea0c3c
commit 97bc2762e1
5 changed files with 52 additions and 6 deletions
@@ -150,7 +150,6 @@ public class ResponseBodyEmitterTests {
// expected
}
verify(this.handler).send("foo", MediaType.TEXT_PLAIN);
verify(this.handler).completeWithError(failure);
verifyNoMoreInteractions(this.handler);
}