Examples of SurefireLauncher


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

public class Surefire34SecurityManagerIT
    extends SurefireIntegrationTestCase
{
    public void testSecurityManager()
    {
        SurefireLauncher surefireLauncher = unpack( "surefire-34-securityManager" ).failNever();
        surefireLauncher.executeTest().assertTestSuiteResults( 2, 1, 0, 0 );
    }
View Full Code Here

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

        surefireLauncher.executeTest().assertTestSuiteResults( 2, 1, 0, 0 );
    }

    public void testSecurityManagerSuccessful()
    {
        SurefireLauncher surefireLauncher = unpack( "surefire-34-securityManager-success" );
        surefireLauncher.executeTest().assertTestSuiteResults( 2, 0, 0, 0 );
    }
View Full Code Here

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

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

    public SurefireLauncher unpack()
    {
        SurefireLauncher unpack = unpack( "/surefire-772-specified-reports" );
        unpack.maven().deleteSiteDir().skipClean().failNever();
        return unpack;
    }
View Full Code Here

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

    }

    private SurefireLauncher unpack()
        throws VerificationException, IOException
    {
        final SurefireLauncher unpack = unpack( "surefire-772-no-failsafe-reports" );
        unpack.maven().deleteSiteDir().skipClean().failNever().assertNotPresent( "site" );
        return unpack;
    }
View Full Code Here

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

    }

    SurefireLauncher specialUnpack()
        throws VerificationException, IOException
    {
        SurefireLauncher unpack = unpack( "junit-pathWithUmlaut" );
        MavenLauncher maven = unpack.maven();

        File dest = new File( maven.getUnpackedAt().getParentFile().getPath(), "/junit-pathWith\u00DCmlaut" );
        maven.moveUnpackTo( dest );
        return unpack;
    }
View Full Code Here

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

{

    public void testWorkingDirectory()
        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final OutputValidator child = getPreparedChild( unpack );
        unpack.executeTest().verifyErrorFreeLog();
        child.assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( child );
    }
View Full Code Here

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

    }

    public void testWorkingDirectoryNoFork()
        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final OutputValidator child = getPreparedChild( unpack );
        unpack.forkNever().executeTest().verifyErrorFreeLog();
        child.assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( child );
    }
View Full Code Here

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

    }

    public void testWorkingDirectoryChildOnly()
        throws Exception
    {
        final SurefireLauncher unpack = getUnpacked();
        final SurefireLauncher child = unpack.getSubProjectLauncher( "child" );
        //child.getTargetFile( "out.txt" ).delete();
        final OutputValidator outputValidator = child.executeTest().assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( outputValidator );
    }
View Full Code Here

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

    public void testWorkingDirectoryChildOnlyNoFork()
        throws Exception
    {

        final SurefireLauncher unpack = getUnpacked();
        final SurefireLauncher child = unpack.getSubProjectLauncher( "child" );
        //child.getTargetFile( "out.txt" ).delete();
        final OutputValidator outputValidator = child.forkNever().executeTest().assertTestSuiteResults( 1, 0, 0, 0 );
        verifyOutputDirectory( outputValidator );
    }
View Full Code Here

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

    public void testReportWithAggregate()
        throws Exception
    {

        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" );
    }
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.