Examples of assertContainsText()


Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        surefireLauncher.addGoal( "-Daggregate=true" );
        OutputValidator validator = surefireLauncher.execute( "surefire-report:report" );
        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyModule2ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

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

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        surefireLauncher.executeTest();
        surefireLauncher.reset();
        surefireLauncher.execute( "surefire-report:report" );
        OutputValidator module1 = surefireLauncher.getSubProjectValidator( "module1" );
        TestFile siteFile = module1.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

    public SurefireLauncher unpack()
    {
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        surefireLauncher.reset();
        surefireLauncher.execute( "surefire-report:report" );
        OutputValidator module1 = surefireLauncher.getSubProjectValidator( "module1" );
        TestFile siteFile = module1.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

    public SurefireLauncher unpack()
    {
        return unpack( "/surefire-570-multipleReportDirectories" );
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

                                                                                         "-Duser.language=ru -Duser.country=RU" ).failNever().addSurefireReportGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        System.out.println( "siteFile.getAbsolutePath() = " + siteFile.getAbsolutePath() );
        assertTrue( "Expecting file", siteFile.exists() );
        siteFile.assertContainsText( "027" ); // Avoid asserting with the "," or "." ;)
    }

}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        OutputValidator validator = unpack( "/surefire-740-comma-truncated" ).addEnvVar( "MAVEN_OPTS",
                                                                                         "-Duser.language=ru -Duser.country=RU" ).failNever().addSurefireReportGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertTrue( "Expecting file", siteFile.exists() );
        siteFile.assertContainsText( "027" ); // Avoid asserting with the "," or "." ;)
    }

}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

    public void testProperNewlines()
    {
        final OutputValidator outputValidator =
            unpack( "/consoleOutput" ).redirectToFile( true ).setJUnitVersion( "4.7" ).executeTest();
        TestFile surefireReportsFile = outputValidator.getSurefireReportsFile( "consoleOutput.Test1-output.txt" );
        surefireReportsFile.assertContainsText( "SoutAgain" );
        surefireReportsFile.assertContainsText( "Printline in shutdown hook" );
    }

}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

    {
        final OutputValidator outputValidator =
            unpack( "/consoleOutput" ).redirectToFile( true ).setJUnitVersion( "4.7" ).executeTest();
        TestFile surefireReportsFile = outputValidator.getSurefireReportsFile( "consoleOutput.Test1-output.txt" );
        surefireReportsFile.assertContainsText( "SoutAgain" );
        surefireReportsFile.assertContainsText( "Printline in shutdown hook" );
    }

}
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        SurefireLauncher surefireLauncher = unpack().failNever();
        surefireLauncher.executeTest();
        surefireLauncher.addGoal( "-Daggregate=true" );
        OutputValidator validator = surefireLauncher.executeSurefireReport( );
        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyModule2ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

    public void testReportWithoutAggregate()
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        surefireLauncher.executeTest();
        surefireLauncher.addGoal( "-Daggregate=true" );
        OutputValidator validator = surefireLauncher.executeSurefireReport( );
        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyModule2ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

    public void testReportWithoutAggregate()
        throws Exception
View Full Code Here

Examples of org.apache.maven.surefire.its.fixture.TestFile.assertContainsText()

        surefireLauncher.addGoal( "-Daggregate=true" );
        OutputValidator validator = surefireLauncher.executeSurefireReport( );
        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        siteFile.assertContainsText( "MyModule1ClassTest" );
        siteFile.assertContainsText( "MyModule2ClassTest" );
        siteFile.assertContainsText( "MyDummyClassM1Test" );
    }

    public void testReportWithoutAggregate()
        throws Exception
    {
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.