Package org.apache.maven.it

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


    this.giveUserPrivilege("test-user", "T5");

    // if this fails it will throw an error
    verifier =
        MavenDeployer.deployAndGetVerifier(gav, repoUrl, fileToDeploy, this.getOverridableFile("settings.xml"));
    verifier.verifyErrorFreeLog();

    // do it again as an update, this should fail

    // if this fails it will throw an error
    try {
View Full Code Here


    TestContainer.getInstance().getTestContext().setUsername(TEST_USER_NAME);
    TestContainer.getInstance().getTestContext().setPassword(TEST_USER_PASSWORD);
    // if this fails it will throw an error
    verifier =
        MavenDeployer.deployAndGetVerifier(gav, repoUrl, fileToDeploy, this.getOverridableFile("settings.xml"));
    verifier.verifyErrorFreeLog();

    // check the services url too, ( just the GET for now )
    // just check the parent dir, incase this is a SNAPSHOT repo
    Response response =
        RequestFacade.sendMessage(new URL(
View Full Code Here

    // deploy using maven
    Verifier verifier = mavenVerifierHelper.createMavenVerifier(mavenProject, getOverridableFile("settings.xml"), getTestId());
    try {
      verifier.setSystemProperty("altDeploymentRepository", "repo::default::" + createUrl(targetRepoId));
      verifier.executeGoal("deploy");
      verifier.verifyErrorFreeLog();
    }

    catch (VerificationException e) {
      File logs = new File(nexusLogDir);
      File bkp = new File("./target/logs/nexus2351-bkp");
View Full Code Here

    Verifier verifier = mavenVerifierHelper.createMavenVerifier(mavenProject, getOverridableFile("settings.xml"), getTestId());
    try {
      verifier.setSystemProperty("altDeploymentRepository", "repo::default::" + createUrl(targetRepoId));
      verifier.executeGoal("deploy");

      verifier.verifyErrorFreeLog();

      Assert.fail("Should return 401 error");
    }
    catch (VerificationException e) {
      // expect error
View Full Code Here

  {
    final File file = getTestFile("artifact.jar");
    Verifier v =
        MavenDeployer.deployAndGetVerifier(gav, getRepositoryUrl(REPO_TEST_HARNESS_REPO), file,
            getOverridableFile("settings.xml"));
    v.verifyErrorFreeLog();

    getEventInspectorsUtil().waitForCalmPeriod();
    TaskScheduleUtil.waitForAllTasksToStop();

    // direct download
View Full Code Here

            goals.add( "test" );

            originalOut.println( "executing " + child.processor.name().toLowerCase() );

            verifier.executeGoals( goals );
            verifier.verifyErrorFreeLog();
        }
        finally {
            verifier.resetStreams();
        }
    }
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 verifier = new Verifier(TEST_ROOT.getAbsolutePath(), getMavenSettings());

        verifier.setSystemProperties(systemProperties);
        verifier.setAutoclean(false);
        verifier.executeGoal("archetype:generate");
        verifier.verifyErrorFreeLog();

        // calls method to apply certain changes to the generated
        // project (changing imports, etc)
        try {
            applyProjectModifications();
View Full Code Here

                    + File.separator
                    + systemProperties.getProperty("artifactId", DEFAULT_TEST_ARTIFACT_ID), getMavenSettings());

        verifier.setAutoclean(false);
        verifier.executeGoal("compile");
        verifier.verifyErrorFreeLog();
    }

    // gets called after the test project has been
    // generated and before 'mvn compile' is run
    protected abstract void applyProjectModifications() throws Exception;
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

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.