Package org.apache.maven.surefire.its.fixture

Examples of org.apache.maven.surefire.its.fixture.ReportTestCase


        ReportTestSuite suite =
            HelperAssertions.extractReports( ( new File[]{ outputValidator.getBaseDir() } ) ).get( 0 );
        List<ReportTestCase> testCases = suite.getTestCases();
        assertEquals( "Wrong number of test case objects", 4, testCases.size() );
        ReportTestCase testQuote = null, testLower = null, testGreater = null, testU0000 = null;
        for ( ReportTestCase current : testCases )
        {
            if ( "testQuote".equals( current.getName() ) )
            {
                testQuote = current;
            }
            else if ( "testLower".equals( current.getName() ) )
            {
                testLower = current;
            }
            else if ( "testGreater".equals( current.getName() ) )
            {
                testGreater = current;
            }
            else if ( "testU0000".equals( current.getName() ) )
            {
                testU0000 = current;
            }
        }
        assertEquals( "Wrong error message", "\"", testQuote.getFailure().get( "message" ) );
        assertEquals( "Wrong error message", "<", testLower.getFailure().get( "message" ) );
        assertEquals( "Wrong error message", ">", testGreater.getFailure().get( "message" ) );
        // SUREFIRE-456 we have to doubly-escape non-visible control characters like \u0000
        assertEquals( "Wrong error message", "&#0;", testU0000.getFailure().get( "message" ) );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.surefire.its.fixture.ReportTestCase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.