Browse souce code repository at: https://github.com/jjYBdx4IL/java-evaluation/blob/master/src/test/java/org/apache/maven/plugins/surefire/report/ReportParserTest.java
//@formatter:off
package org.apache.maven.plugins.surefire.report;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.junit.Assume.assumeTrue;

import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import testgroup.IgnoreFailure;

import java.io.IOException;

// this file is used to generate a well-defined surefire report
@Category(IgnoreFailure.class)
public class ReportParserTest {

    @Test
    public void test() {
    }

    @Ignore
    @Test // ignored
    public void testIgnore() {
    }
    
    @Test // ignored
    public void testAssumeFailed() {
        assumeTrue(false);
    }
    
    @Test(expected = IOException.class) // test failure
    public void testExpectedFailed() throws IOException {
    }
    
    @Test(expected = IOException.class)
    public void testExpected() throws IOException {
        throw new IOException("test expected exception message");
    }
    
    @Test // test failure
    public void testFail() {
        fail("fail message");
    }
    
    @Test // test error
    public void testIOException() throws IOException {
        throw new IOException("test exception message");
    }
    
    @Test // test failure
    public void testAssertionError() {
        assertTrue(false);
    }
}
-------------------------------------------------------------------------------
Test set: org.apache.maven.plugins.surefire.report.ReportParserTest
-------------------------------------------------------------------------------
Tests run: 8, Failures: 3, Errors: 1, Skipped: 2, Time elapsed: 0.048 s <<< FAILURE! - in org.apache.maven.plugins.surefire.report.ReportParserTest
testExpectedFailed  Time elapsed: 0.014 s  <<< FAILURE!
java.lang.AssertionError: Expected exception: java.io.IOException

testExpected  Time elapsed: 0 s
testFail  Time elapsed: 0 s  <<< FAILURE!
java.lang.AssertionError: fail message
	at org.apache.maven.plugins.surefire.report.ReportParserTest.testFail(ReportParserTest.java:44)

testAssertionError  Time elapsed: 0 s  <<< FAILURE!
java.lang.AssertionError
	at org.apache.maven.plugins.surefire.report.ReportParserTest.testAssertionError(ReportParserTest.java:54)

test  Time elapsed: 0.002 s
testIOException  Time elapsed: 0 s  <<< ERROR!
java.io.IOException: test exception message
	at org.apache.maven.plugins.surefire.report.ReportParserTest.testIOException(ReportParserTest.java:49)

testAssumeFailed skipped
testIgnore skipped