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@698362 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2008-09-23 21:32:18 +00:00
parent 4bd9e44801
commit a50208645d
7 changed files with 0 additions and 124 deletions

View File

@ -207,7 +207,6 @@ MavenITmng3645POMSyntaxErrorTest
suite.addTestSuite( MavenIT0057Test.class );
suite.addTestSuite( MavenIT0056Test.class );
suite.addTestSuite( MavenIT0055Test.class );
suite.addTestSuite( MavenIT0054Test.class );
suite.addTestSuite( MavenIT0053Test.class );
suite.addTestSuite( MavenIT0052Test.class );
suite.addTestSuite( MavenIT0051Test.class );

View File

@ -1,49 +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;
public class MavenIT0054Test
extends AbstractMavenIntegrationTestCase
{
/**
* Test resource filtering.
*/
public void testit0054()
throws Exception
{
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0054" );
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
verifier.executeGoal( "package" );
verifier.assertFilePresent( "target/classes/org/apache/maven/it0054/Person.class" );
verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0054/PersonTest.class" );
verifier.assertFilePresent( "target/maven-it-it0054-1.0.jar" );
verifier.assertFilePresent( "target/maven-it-it0054-1.0.jar!/it0054.properties" );
verifier.verifyErrorFreeLog();
verifier.resetStreams();
}
}

View File

@ -1,29 +0,0 @@
<project>
<modelVersion>4.0.0</modelVersion>
<name>Maven Integration Test :: it0054</name>
<groupId>org.apache.maven.its.it0054</groupId>
<artifactId>maven-it-it0054</artifactId>
<description>Test resource filtering.</description>
<packaging>jar</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>
<build>
<filters>
<filter>src/main/filters/filters.properties</filter>
</filters>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
</project>

View File

@ -1,2 +0,0 @@
surname = van zyl
country = Canada

View File

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

View File

@ -1,3 +0,0 @@
name = jason
surname = ${surname}
country = @country@

View File

@ -1,24 +0,0 @@
package org.apache.maven.it0054;
import java.util.Properties;
import junit.framework.TestCase;
public class PersonTest
extends TestCase
{
public void testPerson()
throws Exception
{
Person person = new Person();
person.setName( "foo" );
assertEquals( "foo", person.getName() );
Properties p = new Properties();
p.load( getClass().getResourceAsStream( "/it0054.properties" ) );
assertEquals( "check name", "jason", p.getProperty( "name" ) );
assertEquals( "check surname", "van zyl", p.getProperty( "surname" ) );
assertEquals( "check country", "Canada", p.getProperty( "country" ) );
}
}