diff --git a/test/org/apache/catalina/core/TestStandardHostValve.java b/test/org/apache/catalina/core/TestStandardHostValve.java index ae7d2e526a87..d2bcf8a3f8c3 100644 --- a/test/org/apache/catalina/core/TestStandardHostValve.java +++ b/test/org/apache/catalina/core/TestStandardHostValve.java @@ -128,7 +128,7 @@ private void doTestErrorPageHandling(int error, String exception, String report) // Default error status code expected Assert.assertEquals(500, rc); } - String[] responseLines = (bc.toString().split("\n")); + String[] responseLines = (bc.toString().split(System.lineSeparator())); // First line should be the path Assert.assertEquals(report, responseLines[0]); // Second line should not be the null message warning