Package org.apache.maven.it

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


        throws Exception
    {
        File testDir =
            ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0004-CSharpCompileWithDependency" );
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0004.cs" );
        verifier.assertFilePresent( "target/comments.xml" );
        verifier.assertFilePresent( "target/NMaven.It.It0004-1.0.0.dll" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
View Full Code Here


            if (javaHome.endsWith("jre")) {
                javaHome = new File(javaHome).getParentFile().getCanonicalPath();
                mavenVerifier.setEnvironmentVariable("JAVA_HOME", javaHome);
            }
        }
        mavenVerifier.executeGoal("package");
        mavenVerifier.verifyErrorFreeLog();
    }

    private RestxShell prepareRestxShell() throws IOException {
        ConsoleReader consoleReader = new ConsoleReader();
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.