Package org.apache.maven.it

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


        Verifier verifier;

        verifier = new Verifier( new File( dir, "resource-projects" ).getAbsolutePath() );
        verifier.executeGoal( "deploy" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();

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

        verifier.deleteArtifacts( "org.apache.maven.plugin.rresource.it.mrr41" );
View Full Code Here


        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

           
            Verifier verifier = new Verifier( bootstrapDir.getAbsolutePath() );
           
            verifier.executeGoal( "deploy" );
           
            verifier.verifyErrorFreeLog();
            verifier.resetStreams();
           
            installed = true;
        }
    }
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

    // coming from the configuration of surefire plugin outside
    verifier.getCliOptions().add("-Dstjs.version=" + System.getProperty("stjs.version"));

    verifier.executeGoal("install");

    verifier.verifyErrorFreeLog();

    String artifactFile = verifier.getArtifactPath("org.st-js", "package-js-war", "1.0.0-SNAPSHOT", "war");
    Set<String> entryNames = JarUtils.getJarEntries(artifactFile);

    assertContainsEntry(entryNames, "generated-js/stjs.js");
View Full Code Here

    // coming from the configuration of surefire plugin outside
    verifier.getCliOptions().add("-Dstjs.version=" + System.getProperty("stjs.version"));

    verifier.executeGoal("install");

    verifier.verifyErrorFreeLog();

    String artifactFile = verifier.getArtifactPath("org.st-js", "package-js-jar", "1.0.0-SNAPSHOT", "jar");
    Set<String> entryNames = JarUtils.getJarEntries(artifactFile);

    assertContainsEntry(entryNames, "stjs.js");
View Full Code Here

        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/App.cs" );
        verifier.assertFilePresent( "target/" + BuildDirectories.TEST_BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0007.cs" );
        verifier.assertFilePresent( "target/NMaven.It.It0007-1.0.0-test.dll" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }
}
View Full Code Here

        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0003.cs" );
        verifier.assertFilePresent( "target/comments.xml" );
        verifier.assertFilePresent( "target/NMaven.It.It0003-1.0.0.exe" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }
}
View Full Code Here

        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0011.cs" );
        verifier.assertFilePresent( "target/" + artifactName + ".exe" );
        verifier.assertFilePresent( artifactDir + artifactName + ".exe" );
        verifier.assertFilePresent( artifactDir + artifactName + ".pom" );
        verifier.assertFilePresent( metadataDir + "maven-metadata.xml" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }
}
View Full Code Here

            ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0017-CSharpStrongNamedAssembly" );
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0017.cs" );
        verifier.assertFilePresent( "target/NMaven.It.It0017-1.0.0.dll" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }

}
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.