integration tests for the required maven version test

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@219474 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-07-18 11:59:46 +00:00
parent 4c45989dcb
commit 640667a6a2
9 changed files with 72 additions and 0 deletions

View File

@ -97,6 +97,8 @@ it0031: Test usage of plugins.xml mapping file on the repository to resolve
plugin artifactId from it's prefix using the pluginGroups in
the provided settings.xml.
it0032: Tests that a specified Maven version requirement that is lower doesn't cause any problems
-------------------------------------------------------------------------------
- generated sources
@ -142,4 +144,6 @@ it1005: A build with two mojo java sources that declare the same goal.
it1006: Tests collision on default execution id. Should throw an
IllegalStateException, since the model is incorrect.
-------------------------------------------------------------------------------
it1007: Should fail due to requiring a future version of Maven.
-------------------------------------------------------------------------------

View File

@ -1,3 +1,4 @@
it0032
it0031
#it0030
#it0029

View File

@ -0,0 +1,4 @@
target/classes/org/apache/maven/it0032/Person.class
target/test-classes/org/apache/maven/it0032/PersonTest.class
target/maven-core-it0032-1.0.jar
target/maven-core-it0032-1.0.jar!/it0032.properties

View File

@ -0,0 +1 @@
package

View File

@ -0,0 +1,20 @@
<model>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven</groupId>
<artifactId>maven-core-it0032</artifactId>
<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>
<prerequesites>
<maven>2.0-alpha-3</maven>
</prerequesites>
</model>

View File

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

View File

@ -0,0 +1 @@
name = jason

View File

@ -0,0 +1,16 @@
package org.apache.maven.it0032;
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

@ -0,0 +1,9 @@
<model>
<modelVersion>4.0.0</modelVersion>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-it1007-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
<prerequesites>
<maven>2005</maven>
</prerequesites>
</model>