diff --git a/maven-core-integration-tests/src/test/resources/it0003/pom.xml b/maven-core-integration-tests/src/test/resources/it0003/pom.xml new file mode 100644 index 0000000000..a400799590 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0003/pom.xml @@ -0,0 +1,19 @@ + + 4.0.0 + org.apache.maven + maven-core-it0003 + Builds upon it0001: we add a jar installation step. We delete the JAR + from the local repository to make sure it is there post build. + + jar + 1.0 + + + junit + junit + 3.8.1 + jar + test + + + diff --git a/maven-core-integration-tests/src/test/resources/it0003/src/main/java/org/apache/maven/it0003/Person.java b/maven-core-integration-tests/src/test/resources/it0003/src/main/java/org/apache/maven/it0003/Person.java new file mode 100644 index 0000000000..976117e5f7 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0003/src/main/java/org/apache/maven/it0003/Person.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0003; + +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/it0003/src/main/resources/it0003.properties b/maven-core-integration-tests/src/test/resources/it0003/src/main/resources/it0003.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0003/src/main/resources/it0003.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0003/src/test/java/org/apache/maven/it0003/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0003/src/test/java/org/apache/maven/it0003/PersonTest.java new file mode 100644 index 0000000000..82af36a9a0 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0003/src/test/java/org/apache/maven/it0003/PersonTest.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0003; + +import junit.framework.TestCase; + +public class PersonTest + extends TestCase +{ + public void testPerson() + { + Person person = new Person(); + + person.setName( "foo" ); + + assertEquals( "foo", person.getName() ); + } +}