From df0d13e4c53d7461872e1f925ec06bd36e4a66c9 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Fri, 27 Nov 2020 08:29:33 -0600 Subject: [PATCH] I want to see what failing tests look like with new report. Signed-off-by: Joakim Erdfelt --- .../jetty/util/resource/PathResourceTest.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jetty-util/src/test/java/org/eclipse/jetty/util/resource/PathResourceTest.java b/jetty-util/src/test/java/org/eclipse/jetty/util/resource/PathResourceTest.java index e570669f5325..ca894f30d1af 100644 --- a/jetty-util/src/test/java/org/eclipse/jetty/util/resource/PathResourceTest.java +++ b/jetty-util/src/test/java/org/eclipse/jetty/util/resource/PathResourceTest.java @@ -39,9 +39,28 @@ import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; +import static org.junit.jupiter.api.Assertions.assertEquals; public class PathResourceTest { + // TODO: Remove before merging to jetty-9.4.x + @Test + public void exampleTestThatFails() + { + System.out.println("This is some STDOUT output from the exampleTestThatFails()"); + System.err.println("Also some STDERR output from the exampleTestThatFails()"); + throw new RuntimeException("Always fails"); + } + + // TODO: Remove before merging to jetty-9.4.x + @Test + public void exampleTestThatHasBadAssert() + { + System.out.println("This is some STDOUT output from the exampleTestThatHasBadAssert()"); + System.err.println("And some STDERR output from the exampleTestThatHasBadAssert()"); + assertEquals(5, 6, "Always fails assertion"); + } + @Test public void testNonDefaultFileSystemGetInputStream() throws URISyntaxException, IOException {