Package org.apache.maven.it

Examples of org.apache.maven.it.Verifier$UserModelReader


    public void testit0014()
        throws Exception
    {
        File testDir =
            ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0014-ResolveLibraryDependency" );
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );

        verifier.deleteArtifact( "NMaven.Its", "NMaven.It.It0010", "1.0.0", "dll" );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0014.cs" );
        verifier.assertFilePresent( "target/NMaven.It.It0014-1.0.0.dll" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }
View Full Code Here


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

        String artifactName = artifactId + "-1.0.0";
        String metadataDir = "target/test-repo/NMaven/Its/" + artifactId + "/";
        String artifactDir = metadataDir + "1.0.0/";

        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0012-DeployModule" );
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "deploy" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0012.cs" );
        verifier.assertFilePresent( "target/" + artifactName + ".netmodule" );
        verifier.assertFilePresent( artifactDir + artifactName + ".netmodule" );
        verifier.assertFilePresent( artifactDir + artifactName + ".pom" );
        verifier.assertFilePresent( metadataDir + "maven-metadata.xml" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
    }
View Full Code Here

    {
        File testDir =
            ResourceExtractor.simpleExtractResources( getClass(), "/MavenITmng-0016-CSharpAssemblyInfoGeneration" );
        String assemblyInfoFileName =
            "target/" + BuildDirectories.BUILD_SOURCES_GENERATED.getBuildDirectoryName() + "/META-INF/AssemblyInfo.cs";
        Verifier verifier = new Verifier( testDir.getAbsolutePath() );
        verifier.executeGoal( "install" );
        verifier.assertFilePresent( "target/" + BuildDirectories.BUILD_SOURCES_MAIN.getBuildDirectoryName() + "/It0016.cs" );
        verifier.assertFilePresent( assemblyInfoFileName );
        verifier.assertFilePresent( "target/NMaven.It.It0016-1.0.0.dll" );
        verifier.verifyErrorFreeLog();
        verifier.resetStreams();
        //requires some manual verification of looking at AssemblyInfo.cs to confirm that the pom preoprties have
        //been properly set
    }
View Full Code Here

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

   private Verifier createVerifier() throws IOException, VerificationException {
        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/maven" );

        //Clear any artifact created by the test project to avoid unstable test results
        Verifier verifier = new Verifier(testDir.getAbsolutePath());
        verifier.setAutoclean(false); //Don't do clean automatically in each executeGoal
        verifier.deleteArtifact("org.liquibase", "liquibase-maven-integration-tests", "1.0-SNAPSHOT", "jar");
        return verifier;
    }
View Full Code Here

        AppShellCommand.NewAppCommandRunner appCommandRunner =
                new AppShellCommand(new CoreModule().uuidGenerator()).new NewAppCommandRunner();
        Path appPath = appCommandRunner.generateApp(descriptor, shell);

        Verifier mavenVerifier = new Verifier(appPath.toString());

        if (OSUtils.isMacOSX()) {
            // on MacOSX, when using the verifier JAVA_HOME is not always properly detected
            // sometimes it points to JRE, making javadoc call fail.
            // Here is a workaround for that problem
            String javaHome = System.getProperty("java.home");
            if (javaHome.endsWith("jre")) {
                javaHome = new File(javaHome).getParentFile().getCanonicalPath();
                mavenVerifier.setEnvironmentVariable("JAVA_HOME", javaHome);
            }
        }
        mavenVerifier.executeGoal("package");
        mavenVerifier.verifyErrorFreeLog();
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.it.Verifier$UserModelReader

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.