diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-10-07 11:08:23 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-10-07 11:08:23 +0200 |
commit | 79a55aeadac600f8f2e32ed17b9832854bf851e7 (patch) | |
tree | e4ccff4ae580a91942cab2dfa35e57ac7fbc28e6 /container-core/src/test/java/com/yahoo/jdisc | |
parent | 03e71008c79557781537baf84c91bd00e08aa203 (diff) |
Refactor async completion logic for read and write path
Ensure that failure from request read, write or async context correctly terminates request processing.
Diffstat (limited to 'container-core/src/test/java/com/yahoo/jdisc')
-rw-r--r-- | container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ErrorResponseContentCreatorTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ErrorResponseContentCreatorTest.java b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ErrorResponseContentCreatorTest.java index d66f22801f7..3fa8e154826 100644 --- a/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ErrorResponseContentCreatorTest.java +++ b/container-core/src/test/java/com/yahoo/jdisc/http/server/jetty/ErrorResponseContentCreatorTest.java @@ -6,7 +6,6 @@ import org.junit.Test; import javax.servlet.http.HttpServletResponse; import java.nio.charset.StandardCharsets; -import java.util.Optional; import static org.junit.Assert.assertEquals; @@ -36,7 +35,7 @@ public class ErrorResponseContentCreatorTest { byte[] rawContent = c.createErrorContent( "http://foo.bar", HttpServletResponse.SC_OK, - Optional.of("My custom error message")); + "My custom error message"); String actualHtml = new String(rawContent, StandardCharsets.ISO_8859_1); assertEquals(expectedHtml, actualHtml); } |