Package org.apache.maven.it

Examples of org.apache.maven.it.Verifier.verifyErrorFreeLog()


        verifier = new Verifier( dir.getAbsolutePath() );

        verifier.deleteArtifacts( "org.apache.maven.plugin.rresource.it.mrr41" );

        verifier.executeGoal( "generate-resources" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();

        String depResource = "target/maven-shared-archive-resources/DEPENDENCIES";
        File output = new File( dir, depResource );
        assertTrue( output.exists() );
View Full Code Here


        cliOptions.add( "-DgroupId=" + groupId );
        cliOptions.add( "-DartifactId=" + artifactId );
        cliOptions.add( "-Dversion=" + version );

        verifier.executeGoal( prefix + "bundle-pack" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();

        Set<String> requiredEntries = new HashSet<String>();
        requiredEntries.add( "pom.xml" );
        requiredEntries.add( artifactId + "-" + version + ".jar" );
View Full Code Here

        cliOptions.add( "-Dversion=" + version );
        cliOptions.add( "-DscmUrl=http://foo/" );
        cliOptions.add( "-DscmConnection=scm:svn:http://foo/" );

        verifier.executeGoal( prefix + "bundle-pack" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();

        Set<String> requiredEntries = new HashSet<String>();
        requiredEntries.add( "pom.xml" );
        requiredEntries.add( artifactId + "-" + version + ".jar" );
View Full Code Here

           
            Verifier verifier = new Verifier( bootstrapDir.getAbsolutePath() );
           
            verifier.executeGoal( "install" );
           
            verifier.verifyErrorFreeLog();
            verifier.resetStreams();
           
            installed = true;
        }
    }
View Full Code Here

        verifier.getCliOptions().add( "--settings ../settings.xml" );
       
        String prefix = IntegrationTestUtils.getCliPluginPrefix();
       
        verifier.executeGoal( prefix + "bundle-create" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File bundleSource = new File( dir, "target/test-1.0-bundle.jar" );
       
        Set<String> requiredEntries = new HashSet<String>();
View Full Code Here

        String prefix = IntegrationTestUtils.getCliPluginPrefix();
       
        try
        {
            verifier.executeGoal( prefix + "bundle-create" );
            verifier.verifyErrorFreeLog();
           
            fail( "No SCM Section provided, build should fail." );
        }
        catch( VerificationException e )
        {
View Full Code Here

        verifier.getCliOptions().add( "-f alternative-pom.xml --settings ../settings.xml" );
       
        String prefix = IntegrationTestUtils.getCliPluginPrefix();
       
        verifier.executeGoal( prefix + "bundle-create" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
       
        File bundleSource = new File( dir, "target/test-1.0-bundle.jar" );
       
        Set<String> requiredEntries = new HashSet<String>();
View Full Code Here

        }

        // If no error is expected make sure that error logs are free
        if ( expectNoError )
        {
            verifier.verifyErrorFreeLog();
        }
        verifier.resetStreams();
        return testDir;
    }
View Full Code Here

    verifier.resetStreams();

    verifier.setLogFileName("maven.log");
    verifier.executeGoals(Arrays.asList(goals));
    verifier.verifyErrorFreeLog();
    testIndex().recordLink(
        verifier.getLogFileName(), new File(projectToBuildTarget, verifier.getLogFileName())
    );

    return projectToBuildTarget;
View Full Code Here

    verifier.resetStreams();

    verifier.setLogFileName("maven.log");
    verifier.executeGoals(Arrays.asList(goals));
    verifier.verifyErrorFreeLog();
    testIndex().recordLink(
        verifier.getLogFileName(), new File(projectToBuildTarget, verifier.getLogFileName())
    );

    return projectToBuildTarget;
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.