// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jdisc.http.server.jetty; import org.testng.annotations.Test; import javax.servlet.http.HttpServletResponse; import java.nio.charset.StandardCharsets; import java.util.Optional; import static org.testng.Assert.assertEquals; /** * @author bjorncs */ public class ErrorResponseContentCreatorTest { @Test public void response_content_matches_expected_string() { String expectedHtml = "\n" + "
\n" + "\n" + "Problem accessing http://foo.bar. Reason:\n" + "
My custom error message\n" + "