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

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


    public void testRussianLocaleReport()
    {
        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" );
        System.out.println( "siteFile.getAbsolutePath() = " + siteFile.getAbsolutePath() );
        assertTrue( "Expecting file", siteFile.exists() );
        siteFile.assertContainsText( "027" ); // Avoid asserting with the "," or "." ;)
    }
View Full Code Here


    public void testRussianLocaleReport()
    {
        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

        throws Exception
    {
        OutputValidator outputValidator =
            unpack().addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = outputValidator.getSiteFile( "surefire-report.html" );
        assertTrue( "Expecting surefire report file", siteFile.isFile() );

        siteFile = outputValidator.getSiteFile( "failsafe-report.html" );
        assertTrue( "Expecting failsafe report file", siteFile.isFile() );
    }
View Full Code Here

    {
        OutputValidator validator = unpack().
            activateProfile(
                "skipFailsafe" ).addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertTrue( "Expecting surefire report file", siteFile.isFile() );

        siteFile = validator.getSiteFile( "failsafe-report.html" );
        assertFalse( "Expecting no failsafe report file", siteFile.isFile() );
    }
View Full Code Here

    {
        OutputValidator validator = unpack().failNever().
            activateProfile(
                "skipSurefire" ).addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertFalse( "Expecting no surefire report file", siteFile.isFile() );

        siteFile = validator.getSiteFile( "failsafe-report.html" );
        assertTrue( "Expecting failsafe report file", siteFile.isFile() );
    }
View Full Code Here

    public void testReportGeneration()
    {
        OutputValidator validator =
            unpack().addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertTrue( "Expecting surefire report file", siteFile.isFile() );

        siteFile = validator.getSiteFile( "failsafe-report.html" );
        assertTrue( "Expecting failsafe report file", siteFile.isFile() );
    }
View Full Code Here

    public void testSkippedFailsafeReportGeneration()
    {
        OutputValidator validator = unpack().activateProfile(
            "skipFailsafe" ).addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertTrue( "Expecting surefire report file", siteFile.isFile() );

        siteFile = validator.getSiteFile( "failsafe-report.html" );
        assertFalse( "Expecting no failsafe report file", siteFile.isFile() );
    }
View Full Code Here

    public void testSkippedSurefireReportGeneration()
    {
        OutputValidator validator = unpack().activateProfile(
            "skipSurefire" ).addFailsafeReportOnlyGoal().addSurefireReportOnlyGoal().executeCurrentGoals();

        TestFile siteFile = validator.getSiteFile( "surefire-report.html" );
        assertFalse( "Expecting no surefire report file", siteFile.isFile() );

        siteFile = validator.getSiteFile( "failsafe-report.html" );
        assertTrue( "Expecting failsafe report file", siteFile.isFile() );
    }
View Full Code Here

        assertNoFailsefeReport( validator );
    }

    private void assertNoFailsefeReport( OutputValidator site )
    {
        TestFile siteFile = site.getSiteFile( "failsafe-report.html" );
        assertFalse( "Expecting no failsafe report file", siteFile.isFile() );
    }
View Full Code Here

        assertFalse( "Expecting no failsafe report file", siteFile.isFile() );
    }

    private void assertFailsafeReport( OutputValidator site )
    {
        TestFile siteFile = site.getSiteFile( "failsafe-report.html" );
        assertTrue( "Expecting no failsafe report file", siteFile.isFile() );
    }
View Full Code Here

TOP

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

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.