mirror of https://github.com/apache/maven.git
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@698368 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a50208645d
commit
6538efe0bb
|
@ -206,7 +206,6 @@ MavenITmng3645POMSyntaxErrorTest
|
|||
suite.addTestSuite( MavenIT0058Test.class );
|
||||
suite.addTestSuite( MavenIT0057Test.class );
|
||||
suite.addTestSuite( MavenIT0056Test.class );
|
||||
suite.addTestSuite( MavenIT0055Test.class );
|
||||
suite.addTestSuite( MavenIT0053Test.class );
|
||||
suite.addTestSuite( MavenIT0052Test.class );
|
||||
suite.addTestSuite( MavenIT0051Test.class );
|
||||
|
|
|
@ -1,50 +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 MavenIT0055Test
|
||||
extends AbstractMavenIntegrationTestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test that source includes/excludes with in the compiler plugin config.
|
||||
* This will test excludes and testExcludes...
|
||||
*/
|
||||
public void testit0055()
|
||||
throws Exception
|
||||
{
|
||||
File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0055" );
|
||||
Verifier verifier = new Verifier( testDir.getAbsolutePath() );
|
||||
verifier.executeGoal( "test-compile" );
|
||||
verifier.assertFilePresent( "target/classes/org/apache/maven/it0055/Person.class" );
|
||||
verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0055/PersonTest.class" );
|
||||
verifier.assertFileNotPresent( "target/classes/org/apache/maven/it0055/PersonTwo.class" );
|
||||
verifier.assertFileNotPresent( "target/test-classes/org/apache/maven/it0055/PersonTwoTest.class" );
|
||||
verifier.verifyErrorFreeLog();
|
||||
verifier.resetStreams();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<name>Maven Integration Test :: it0055</name>
|
||||
<groupId>org.apache.maven.its.it0055</groupId>
|
||||
<artifactId>maven-it-it0055</artifactId>
|
||||
<description>Test that source includes/excludes with in the compiler plugin config.
|
||||
This will test excludes and testExcludes...</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>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude implementation="java.lang.String">**/PersonTwo.java</exclude>
|
||||
</excludes>
|
||||
<testExcludes>
|
||||
<testExclude implementation="java.lang.String">**/PersonTwoTest.java</testExclude>
|
||||
</testExcludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0055;
|
||||
|
||||
public class Person
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0055;
|
||||
|
||||
public class PersonTwo
|
||||
{
|
||||
private String name;
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
name = jason
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0055;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
package org.apache.maven.it0001;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class PersonTwoTest
|
||||
extends TestCase
|
||||
{
|
||||
public void testPerson()
|
||||
{
|
||||
Person person = new Person();
|
||||
|
||||
person.setName( "foo" );
|
||||
|
||||
assertEquals( "foo", person.getName() );
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue