From ed07d4c735838446b11efff679ac0defc0632668 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 20 Mar 2008 19:27:39 +0000 Subject: [PATCH] o Added svn:eol-style=native git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@639420 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/it/plugin-report-failure-it/pom.xml | 76 +++++++++---------- .../src/test/java/PluginReportCrashTest.java | 66 ++++++++-------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/maven-plugin-plugin/src/it/plugin-report-failure-it/pom.xml b/maven-plugin-plugin/src/it/plugin-report-failure-it/pom.xml index 954314a..86f75c5 100644 --- a/maven-plugin-plugin/src/it/plugin-report-failure-it/pom.xml +++ b/maven-plugin-plugin/src/it/plugin-report-failure-it/pom.xml @@ -1,38 +1,38 @@ - - 4.0.0 - org.apache.maven.its - maven-integration-test-sample - 1.0-SNAPSHOT - Maven Integration Tests - - - org.apache.maven.shared - maven-verifier - 1.0 - - - org.apache.maven.its - maven-integration-test-helper - 1.0-SNAPSHOT - - - junit - junit - 3.8.1 - test - - - - - - apache.snapshots - http://people.apache.org/repo/m2-snapshot-repository - - false - - - true - - - - + + 4.0.0 + org.apache.maven.its + maven-integration-test-sample + 1.0-SNAPSHOT + Maven Integration Tests + + + org.apache.maven.shared + maven-verifier + 1.0 + + + org.apache.maven.its + maven-integration-test-helper + 1.0-SNAPSHOT + + + junit + junit + 3.8.1 + test + + + + + + apache.snapshots + http://people.apache.org/repo/m2-snapshot-repository + + false + + + true + + + + diff --git a/maven-plugin-plugin/src/it/plugin-report-failure-it/src/test/java/PluginReportCrashTest.java b/maven-plugin-plugin/src/it/plugin-report-failure-it/src/test/java/PluginReportCrashTest.java index 463f4b6..38a06d6 100644 --- a/maven-plugin-plugin/src/it/plugin-report-failure-it/src/test/java/PluginReportCrashTest.java +++ b/maven-plugin-plugin/src/it/plugin-report-failure-it/src/test/java/PluginReportCrashTest.java @@ -1,33 +1,33 @@ - - -import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; -import org.apache.maven.it.Verifier; -import org.apache.maven.it.util.ResourceExtractor; - -import java.io.File; - -/** - * Tests that the PluginDescriptor.getArtifacts() call returns all of the dependencies of the plugin, - * not just those that made it past the filter excluding Maven's core artifacts. - */ -public class PluginReportCrashTest - extends AbstractMavenIntegrationTestCase -{ - public void testPluginReport() - throws Exception - { - File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/PluginReportCrash" ); - - Verifier verifier = new Verifier( testDir.getAbsolutePath() ); - - verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.3:report" ); - verifier.verifyErrorFreeLog(); - verifier.resetStreams(); - - verifier = new Verifier( testDir.getAbsolutePath() ); - - verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.4:report" ); - verifier.verifyErrorFreeLog(); - verifier.resetStreams(); - } -} + + +import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase; +import org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +import java.io.File; + +/** + * Tests that the PluginDescriptor.getArtifacts() call returns all of the dependencies of the plugin, + * not just those that made it past the filter excluding Maven's core artifacts. + */ +public class PluginReportCrashTest + extends AbstractMavenIntegrationTestCase +{ + public void testPluginReport() + throws Exception + { + File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/PluginReportCrash" ); + + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); + + verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.3:report" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + + verifier = new Verifier( testDir.getAbsolutePath() ); + + verifier.executeGoal( "org.apache.maven.plugins:maven-plugin-plugin:2.4:report" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + } +}