o Deleted redundant IT for MNG-932 (we have core ITs for MNG-1021/MNG-2921 to check deployment/resolution of attached artifacts and a plugin IT for MJAR-75 to check the creation of the test JAR itself)

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@736114 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-01-20 21:29:09 +00:00
parent 2cd1b9036d
commit 630c279aa6
8 changed files with 0 additions and 173 deletions

View File

@ -247,7 +247,6 @@ public class IntegrationTestSuite
suite.addTestSuite( MavenITmng1021EqualAttachmentBuildNumberTest.class );
suite.addTestSuite( MavenITmng0985NonExecutedPluginMngtGoalsTest.class );
suite.addTestSuite( MavenITmng0956ComponentInjectionViaProjectLevelPluginDepTest.class );
suite.addTestSuite( MavenITmng0932TestJarDeploymentTest.class );
suite.addTestSuite( MavenITmng0870ReactorAwarePluginDiscoveryTest.class );
suite.addTestSuite( MavenITmng0866EvaluateDefaultValueTest.class );
suite.addTestSuite( MavenITmng0851CustomPomFilenameTest.class );

View File

@ -1,51 +0,0 @@
package org.apache.maven.it;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
/**
* This is a test set for <a href="http://jira.codehaus.org/browse/MNG-932">MNG-932</a>.
*
* @author Brett Porter
* @version $Id$
*/
public class MavenITmng0932TestJarDeploymentTest
extends AbstractMavenIntegrationTestCase
{
/**
* Test test jar attachment.
*/
public void testitMNG0932()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/mng-0932" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven.its.it0077", "sub1", "1.0", "test-jar" );
verifier.executeGoal( "install" );
verifier.assertArtifactPresent( "org.apache.maven.its.it0077", "sub1", "1.0", "test-jar" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -1,23 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0077</name>
<groupId>org.apache.maven.its.it0077</groupId>
<artifactId>maven-it-it0077</artifactId>
<description>Test test jar attachment.</description>
<packaging>pom</packaging>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<modules>
<module>sub1</module>
<module>sub2</module>
</modules>
</project>

View File

@ -1,33 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.it0077</groupId>
<artifactId>maven-it-it0077</artifactId>
<version>1.0</version>
</parent>
<artifactId>sub1</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0077;
public class Person
{
private String name;
public void setName( String name )
{
this.name = name;
}
public String getName()
{
return name;
}
}

View File

@ -1,16 +0,0 @@
package org.apache.maven.it0077;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
}
}

View File

@ -1,25 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.maven.its.it0077</groupId>
<artifactId>maven-it-it0077</artifactId>
<version>1.0</version>
</parent>
<artifactId>sub2</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>org.apache.maven.its.it0077</groupId>
<artifactId>sub1</artifactId>
<version>1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.its.it0077</groupId>
<artifactId>sub1</artifactId>
<type>test-jar</type>
<version>1.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,8 +0,0 @@
package org.apache.maven.it0077;
import junit.framework.TestCase;
public class PersonTwoTest
extends PersonTest
{
}