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

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


        final OutputValidator outputValidator = unpack().addGoal( "-Dprovider=surefire-junit4" ).setJUnitVersion(
            "4.4" ).executeTest().verifyErrorFreeLog();
        assertResults( outputValidator );
        outputValidator.verifyTextInLog( "testRunStarted null" );
        outputValidator.verifyTextInLog( "testFinished simpleTest" );
        outputValidator.verifyTextInLog( "testRunFinished org.junit.runner.Result" );
    }

    public void testRunlistenerJunitCoreProvider()
        throws Exception
    {
View Full Code Here


    {
        final OutputValidator outputValidator =
            unpack().addGoal( "-Dprovider=surefire-junit47" ).setJUnitVersion( "4.8.1" ).addGoal(
                "-DjunitVersion=4.8.1" ).executeTest().verifyErrorFreeLog();   // Todo: Fix junitVesion
        assertResults( outputValidator );
        outputValidator.verifyTextInLog( "testRunStarted null" );
        outputValidator.verifyTextInLog( "testFinished simpleTest" );
        outputValidator.verifyTextInLog( "testRunFinished org.junit.runner.Result" );
    }

    private void assertResults( OutputValidator outputValidator )
View Full Code Here

        final OutputValidator outputValidator =
            unpack().addGoal( "-Dprovider=surefire-junit47" ).setJUnitVersion( "4.8.1" ).addGoal(
                "-DjunitVersion=4.8.1" ).executeTest().verifyErrorFreeLog();   // Todo: Fix junitVesion
        assertResults( outputValidator );
        outputValidator.verifyTextInLog( "testRunStarted null" );
        outputValidator.verifyTextInLog( "testFinished simpleTest" );
        outputValidator.verifyTextInLog( "testRunFinished org.junit.runner.Result" );
    }

    private void assertResults( OutputValidator outputValidator )
    {
View Full Code Here

            unpack().addGoal( "-Dprovider=surefire-junit47" ).setJUnitVersion( "4.8.1" ).addGoal(
                "-DjunitVersion=4.8.1" ).executeTest().verifyErrorFreeLog();   // Todo: Fix junitVesion
        assertResults( outputValidator );
        outputValidator.verifyTextInLog( "testRunStarted null" );
        outputValidator.verifyTextInLog( "testFinished simpleTest" );
        outputValidator.verifyTextInLog( "testRunFinished org.junit.runner.Result" );
    }

    private void assertResults( OutputValidator outputValidator )
    {
        outputValidator.assertTestSuiteResults( 1, 0, 0, 0 );
View Full Code Here

{
    public void testPaallelBuildResultCount()
    {
        OutputValidator validator = unpack( "/surefire-613-testCount-in-parallel" ).failNever().executeTest();

        validator.verifyTextInLog( "testAllok to stdout" );
        validator.verifyTextInLog( "testAllok to stderr" );
        validator.verifyTextInLog( "testWithException1 to stdout" );
        validator.verifyTextInLog( "testWithException1 to stderr" );
        validator.assertTestSuiteResults( 30, 8, 4, 17 );
    }
View Full Code Here

    public void testPaallelBuildResultCount()
    {
        OutputValidator validator = unpack( "/surefire-613-testCount-in-parallel" ).failNever().executeTest();

        validator.verifyTextInLog( "testAllok to stdout" );
        validator.verifyTextInLog( "testAllok to stderr" );
        validator.verifyTextInLog( "testWithException1 to stdout" );
        validator.verifyTextInLog( "testWithException1 to stderr" );
        validator.assertTestSuiteResults( 30, 8, 4, 17 );
    }
}
View Full Code Here

    {
        OutputValidator validator = unpack( "/surefire-613-testCount-in-parallel" ).failNever().executeTest();

        validator.verifyTextInLog( "testAllok to stdout" );
        validator.verifyTextInLog( "testAllok to stderr" );
        validator.verifyTextInLog( "testWithException1 to stdout" );
        validator.verifyTextInLog( "testWithException1 to stderr" );
        validator.assertTestSuiteResults( 30, 8, 4, 17 );
    }
}
View Full Code Here

        OutputValidator validator = unpack( "/surefire-613-testCount-in-parallel" ).failNever().executeTest();

        validator.verifyTextInLog( "testAllok to stdout" );
        validator.verifyTextInLog( "testAllok to stderr" );
        validator.verifyTextInLog( "testWithException1 to stdout" );
        validator.verifyTextInLog( "testWithException1 to stderr" );
        validator.assertTestSuiteResults( 30, 8, 4, 17 );
    }
}
View Full Code Here

    public void testJUnitRunCategoryAB()
    {
        OutputValidator validator = unpackJUnit().groups( "junit4.CategoryA&&junit4.CategoryB" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 1" );
        validator.verifyTextInLog( "catB: 1" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 0" );
        validator.verifyTextInLog( "mA: 1" );
        validator.verifyTextInLog( "mB: 1" );
View Full Code Here

    {
        OutputValidator validator = unpackJUnit().groups( "junit4.CategoryA&&junit4.CategoryB" ).executeTest();
        validator.verifyErrorFreeLog();
        validator.assertTestSuiteResults( 2, 0, 0, 0 );
        validator.verifyTextInLog( "catA: 1" );
        validator.verifyTextInLog( "catB: 1" );
        validator.verifyTextInLog( "catC: 0" );
        validator.verifyTextInLog( "catNone: 0" );
        validator.verifyTextInLog( "mA: 1" );
        validator.verifyTextInLog( "mB: 1" );
        validator.verifyTextInLog( "mC: 0" );
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.