From cb1d53269a73044cc80f3d60254c14ba9ddf7697 Mon Sep 17 00:00:00 2001 From: Brian E Fox Date: Thu, 15 Mar 2007 02:34:52 +0000 Subject: [PATCH] added tests that are commented out for MDEP-44 and MDEP-66 git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@518445 13f79535-47bb-0310-9956-ffa450edef68 --- .../IntegrationTestSuite.java | 1 + ...MavenIT0118AttachedArtifactsInReactor.java | 31 ++++++++++++++++ .../one/pom.xml | 27 ++++++++++++++ .../it0118-attachedartifactinreactor/pom.xml | 12 ++++++ .../two/pom.xml | 37 +++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0118AttachedArtifactsInReactor.java create mode 100644 its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/one/pom.xml create mode 100644 its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/pom.xml create mode 100644 its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/two/pom.xml diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java index 5d4baa8242..a41bb56e22 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/IntegrationTestSuite.java @@ -133,6 +133,7 @@ public class IntegrationTestSuite suite.addTestSuite( MavenIT0111PluginsThatRequireAResourceFromAnExtensionTest.class ); suite.addTestSuite( MavenIT0112ExtensionsThatDragDependencies.class ); suite.addTestSuite( MavenIT0113ServerAuthzAvailableToWagonMgrInPlugin.class ); + //suite.addTestSuite( MavenIT0118AttachedArtifactsInReactor.class ); return suite; } } diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0118AttachedArtifactsInReactor.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0118AttachedArtifactsInReactor.java new file mode 100644 index 0000000000..ea4e8ed8a9 --- /dev/null +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0118AttachedArtifactsInReactor.java @@ -0,0 +1,31 @@ +package org.apache.maven.integrationtests; + +import java.io.File; +import java.util.List; +import java.util.ArrayList; + +import org.apache.maven.it.Verifier; +import org.apache.maven.it.util.ResourceExtractor; + +public class MavenIT0118AttachedArtifactsInReactor + extends AbstractMavenIntegrationTestCase +{ + public void testit0118() + throws Exception + { + File testDir = + ResourceExtractor.simpleExtractResources( getClass(), "/it0118-attachedartifactinreactor" ); + + Verifier verifier; + + // Install the parent POM + verifier = new Verifier( testDir.getAbsolutePath() ); + verifier.deleteArtifact( "org.apache.maven.its.it0118", "parent", "1.0", "pom" ); + verifier.deleteArtifact( "org.apache.maven.its.it0118", "one", "1.0", "jar" ); + verifier.deleteArtifact( "org.apache.maven.its.it0118", "two", "1.0", "pom" ); + List cliOptions = new ArrayList(); + verifier.executeGoal( "package" ); + verifier.verifyErrorFreeLog(); + verifier.resetStreams(); + } +} diff --git a/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/one/pom.xml b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/one/pom.xml new file mode 100644 index 0000000000..981a883fa4 --- /dev/null +++ b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/one/pom.xml @@ -0,0 +1,27 @@ + + + 4.0.0 + org.apache.maven.its.it0118 + one + 1.0 + + + + maven-assembly-plugin + + + package + + single + + + + src + + + + + + + + diff --git a/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/pom.xml b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/pom.xml new file mode 100644 index 0000000000..8167b2dc1c --- /dev/null +++ b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/pom.xml @@ -0,0 +1,12 @@ + + + 4.0.0 + org.apache.maven.its.it0118 + parent + 1.0 + pom + + one + two + + diff --git a/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/two/pom.xml b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/two/pom.xml new file mode 100644 index 0000000000..3f2c86747d --- /dev/null +++ b/its/core-integration-tests/src/test/resources/it0118-attachedartifactinreactor/two/pom.xml @@ -0,0 +1,37 @@ + + + 4.0.0 + org.apache.maven.its.it0118 + two + 1.0 + pom + + + org.apache.maven.its.it0118 + one + 1.0 + src + zip + + + + + + maven-dependency-plugin + + + unpack + generate-sources + + unpack-dependencies + + + ${project.build.directory}/extracted + zip + + + + + + +