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@698194 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-23 14:38:06 +00:00
parent a1416e48c1
commit 06f549e1eb
6 changed files with 0 additions and 121 deletions

View File

@ -160,7 +160,6 @@ MavenITmng3645POMSyntaxErrorTest
suite.addTestSuite( MavenIT0110PluginDependenciesComeFromPluginReposTest.class );
suite.addTestSuite( MavenIT0107Test.class );
suite.addTestSuite( MavenIT0106Test.class );
suite.addTestSuite( MavenIT0105Test.class );
suite.addTestSuite( MavenIT0104Test.class );
suite.addTestSuite( MavenIT0103Test.class );
suite.addTestSuite( MavenIT0102Test.class );

View File

@ -1,32 +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.ArrayList;
import java.util.List;
public class MavenIT0105Test
extends AbstractMavenIntegrationTestCase
{
/**
* MRESOURCES-18
*/
public void testit0105()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0105" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
List cliOptions = new ArrayList();
cliOptions.add( "-Dparam=PARAM" );
verifier.setCliOptions( cliOptions );
verifier.executeGoal( "test" );
verifier.assertFilePresent( "target/classes/test.properties" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -1,36 +0,0 @@
<project xmlns="http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0105</name>
<groupId>org.apache.maven.its.it0105</groupId>
<artifactId>maven-it-it0105</artifactId>
<description>MRESOURCES-18</description>
<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>
<build>
<!-- Enabling this will fix the problem for
maven-resources-plugin 2.2-20060403.015736-1 and earlier.
<filters>
<filter>filter.properties</filter>
</filters>
-->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
<properties>
<my.property>foo</my.property>
</properties>
</project>

View File

@ -1,3 +0,0 @@
systemProperty=${java.version}
param=${param}
pom.property=${my.property}

View File

@ -1,49 +0,0 @@
package org.apache.maven.it0105;
import junit.framework.TestCase;
import java.util.Properties;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
public class FilterTest
extends TestCase
{
private String basedir;
private Properties properties;
protected void setUp()
throws Exception
{
basedir = System.getProperty( "basedir" );
properties = new Properties();
File testPropertiesFile = new File( basedir, "target/classes/test.properties" );
assertTrue( testPropertiesFile.exists() );
properties.load( new FileInputStream( testPropertiesFile ) );
}
public void testSystemPropertyInterpolation()
throws IOException
{
assertEquals( "System property", System.getProperty( "java.version" ), properties.getProperty( "systemProperty" ) );
}
public void testParameterInterpolation()
throws IOException
{
assertEquals( "Parameter", System.getProperty( "parameter" ), properties.getProperty( "parameter" ) );
}
public void testPomPropertyInterpolation()
throws IOException
{
assertEquals( "Pom Property", "foo", properties.getProperty( "pom.property" ) );
}
}