Examples of verifyTextInLog()


Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

    @Test
    public void misg()
        throws Exception
    {
        OutputValidator outputValidator = unpack( "/junit48-smartStackTrace" ).maven().withFailure().executeTest();
        outputValidator.verifyTextInLog( "SmartStackTraceTest.shouldFailInMethodButDoesnt Expected exception: java.lang.RuntimeException" );
        outputValidator.verifyTextInLog( "SmartStackTraceTest.shortName Expected exception: java.io.IOException" );

    }
}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

    public void misg()
        throws Exception
    {
        OutputValidator outputValidator = unpack( "/junit48-smartStackTrace" ).maven().withFailure().executeTest();
        outputValidator.verifyTextInLog( "SmartStackTraceTest.shouldFailInMethodButDoesnt Expected exception: java.lang.RuntimeException" );
        outputValidator.verifyTextInLog( "SmartStackTraceTest.shortName Expected exception: java.io.IOException" );

    }
}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

        final OutputValidator outputValidator = unpack().activateProfile( profile )
            .maven().withFailure().executeTest();

        for ( String message : messages )
        {
            outputValidator.verifyTextInLog( message );
        }
    }
}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

    public void testJunit3ParallelBuildResultCount()
    {
        OutputValidator validator =
            unpack( "surefire-628-consoleoutputbeforeandafterclass" ).failNever().parallelMethods().executeTest();

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

    {
        OutputValidator validator =
            unpack( "surefire-628-consoleoutputbeforeandafterclass" ).failNever().parallelMethods().executeTest();

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
    }
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

        OutputValidator validator =
            unpack( "surefire-628-consoleoutputbeforeandafterclass" ).failNever().parallelMethods().executeTest();

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
    }
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

            unpack( "surefire-628-consoleoutputbeforeandafterclass" ).failNever().parallelMethods().executeTest();

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
    }

    public void testProperBeforeAndAfterClassCapture()
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
    }

    public void testProperBeforeAndAfterClassCapture()
    {
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

        validator.verifyTextInLog( "628Test1" );
        validator.verifyTextInLog( "Before628Test1" );
        validator.verifyTextInLog( "After628Test1" );
        validator.verifyTextInLog( "628Test2" );
        validator.verifyTextInLog( "BeforeClass628Test2" );
        validator.verifyTextInLog( "AfterClass628Test2" );
    }

    public void testProperBeforeAndAfterClassCapture()
    {
        OutputValidator validator =
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.OutputValidator.verifyTextInLog()

    private void assertForkMode( String forkMode )
        throws IOException, VerificationException
    {
        OutputValidator outputValidator = unpack( "result-counting" ).failNever().forkMode( forkMode ).executeTest();
        outputValidator.assertTestSuiteResults( 36, 23, 4, 2 );
        outputValidator.verifyTextInLog( "Tests run: 36, Failures: 4, Errors: 23, Skipped: 2" );
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.