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
This commit is contained in:
Brian E Fox 2007-03-15 02:34:52 +00:00
parent 19268a7fa1
commit cb1d53269a
5 changed files with 108 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -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();
}
}

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.it0118</groupId>
<artifactId>one</artifactId>
<version>1.0</version>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptorRefs>
<descriptorRef>src</descriptorRef>
</descriptorRefs>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.it0118</groupId>
<artifactId>parent</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<modules>
<module>one</module>
<module>two</module>
</modules>
</project>

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.its.it0118</groupId>
<artifactId>two</artifactId>
<version>1.0</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.it0118</groupId>
<artifactId>one</artifactId>
<version>1.0</version>
<classifier>src</classifier>
<type>zip</type>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>unpack</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/extracted</outputDirectory>
<includeTypes>zip</includeTypes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>