o Deleted IT thas has been migrated to the corresponding plugin project

git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@698150 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-23 12:13:33 +00:00
parent de912c31f0
commit f46e4cd6fa
4 changed files with 0 additions and 135 deletions

View File

@ -247,7 +247,6 @@ MavenITmng3645POMSyntaxErrorTest
suite.addTestSuite( MavenIT0017Test.class );
suite.addTestSuite( MavenIT0016Test.class );
suite.addTestSuite( MavenIT0014Test.class );
suite.addTestSuite( MavenIT0013Test.class );
suite.addTestSuite( MavenIT0012Test.class );
suite.addTestSuite( MavenIT0011Test.class );
suite.addTestSuite( MavenIT0010Test.class );

View File

@ -1,37 +0,0 @@
package org.apache.maven.integrationtests;
import org.apache.maven.it.Verifier;
import org.apache.maven.it.util.ResourceExtractor;
import java.io.File;
import java.util.Arrays;
import java.util.List;
public class MavenIT0013Test
extends AbstractMavenIntegrationTestCase
{
/**
* Test plugin-plugin, which tests maven-plugin-tools-api and
* maven-plugin-tools-java. This will generate a plugin descriptor from
* java-based mojo sources, install the plugin, and then use it.
*/
public void testit0013()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0013" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.deleteArtifact( "org.apache.maven.its.plugins", "maven-it-it0013", "1.0-SNAPSHOT", "maven-plugin" );
List goals = Arrays.asList( new String[]{"install" } );
verifier.executeGoals( goals );
verifier.assertFilePresent( "target/maven-it-it0013-1.0-SNAPSHOT.jar" );
verifier = new Verifier( testDir.getAbsolutePath() );
goals = Arrays.asList( new String[]{"org.apache.maven.its.it0013:maven-it-it0013:it0013"} );
verifier.executeGoals( goals );
verifier.assertFilePresent( "target/it0013-verify" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -1,27 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0013</name>
<groupId>org.apache.maven.its.it0013</groupId>
<artifactId>maven-it-it0013</artifactId>
<description>Test plugin-plugin, which tests maven-plugin-tools-api and
maven-plugin-tools-java. This will generate a plugin descriptor from
java-based mojo sources, install the plugin, and then use it.</description>
<packaging>maven-plugin</packaging>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-api</artifactId>
<version>2.0-beta-1</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<type>jar</type>
<scope>test</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,70 +0,0 @@
package org.apache.maven.plugin.coreit;
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed 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.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
/**
* @goal it0013
*
* @description touches a test file
*
*/
public class CoreIt0013Mojo
extends AbstractMojo
{
private static final int DELETE_RETRY_SLEEP_MILLIS = 10;
/**
* @parameter expression="${project.build.directory}"
* @required
*/
private String outputDirectory;
public void execute()
throws MojoExecutionException
{
getLog().info( "outputDirectory = " + outputDirectory );
File f = new File( outputDirectory );
if ( !f.exists() )
{
f.mkdirs();
}
File touch = new File( f, "it0013-verify" );
try
{
FileWriter w = new FileWriter( touch );
w.write( "it0013-verify" );
w.close();
}
catch ( IOException e )
{
throw new MojoExecutionException( "Error writing verification file.", e );
}
}
}