Skip to content

Commit

Permalink
I want to see what failing tests look like with new report.
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime authored and olamy committed Dec 1, 2020
1 parent fca6caf commit df0d13e
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit df0d13e

Please sign in to comment.