From 73b1d23fed91745021249416d5ae8e881c311727 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Thu, 19 Oct 2006 20:43:28 +0000 Subject: [PATCH] o adding IT it0032 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465806 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/resources/it0032/pom.xml | 21 +++++++++++++++++++ .../java/org/apache/maven/it0032/Person.java | 16 ++++++++++++++ .../src/main/resources/it0032.properties | 1 + .../org/apache/maven/it0032/PersonTest.java | 16 ++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 maven-core-integration-tests/src/test/resources/it0032/pom.xml create mode 100644 maven-core-integration-tests/src/test/resources/it0032/src/main/java/org/apache/maven/it0032/Person.java create mode 100644 maven-core-integration-tests/src/test/resources/it0032/src/main/resources/it0032.properties create mode 100644 maven-core-integration-tests/src/test/resources/it0032/src/test/java/org/apache/maven/it0032/PersonTest.java diff --git a/maven-core-integration-tests/src/test/resources/it0032/pom.xml b/maven-core-integration-tests/src/test/resources/it0032/pom.xml new file mode 100644 index 0000000000..7f0e6fd87d --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0032/pom.xml @@ -0,0 +1,21 @@ + + 4.0.0 + org.apache.maven + maven-core-it0032 + Tests that a specified Maven version requirement that is lower doesn't cause any problems + jar + 1.0 + + + junit + junit + 3.8.1 + jar + test + + + + + 2.0-alpha-3 + + diff --git a/maven-core-integration-tests/src/test/resources/it0032/src/main/java/org/apache/maven/it0032/Person.java b/maven-core-integration-tests/src/test/resources/it0032/src/main/java/org/apache/maven/it0032/Person.java new file mode 100644 index 0000000000..4d5d008b82 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0032/src/main/java/org/apache/maven/it0032/Person.java @@ -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; + } +} diff --git a/maven-core-integration-tests/src/test/resources/it0032/src/main/resources/it0032.properties b/maven-core-integration-tests/src/test/resources/it0032/src/main/resources/it0032.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0032/src/main/resources/it0032.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0032/src/test/java/org/apache/maven/it0032/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0032/src/test/java/org/apache/maven/it0032/PersonTest.java new file mode 100644 index 0000000000..6676512c54 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0032/src/test/java/org/apache/maven/it0032/PersonTest.java @@ -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() ); + } +}