diff --git a/maven-core-integration-tests/src/test/resources/it0002/pom.xml b/maven-core-integration-tests/src/test/resources/it0002/pom.xml new file mode 100644 index 0000000000..f5e3ae8832 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/pom.xml @@ -0,0 +1,26 @@ + + 4.0.0 + org.apache.maven + maven-core-it0002 + Builds upon it0001: we add the download of a dependency. We delete + the JAR from the local repository and make sure it is there post build. + + jar + 1.0 + + + junit + junit + 3.8.1 + jar + test + + + org.apache.maven + maven-core-it-support + 1.0 + jar + compile + + + diff --git a/maven-core-integration-tests/src/test/resources/it0002/src/main/java/org/apache/maven/it0001/Person.java b/maven-core-integration-tests/src/test/resources/it0002/src/main/java/org/apache/maven/it0001/Person.java new file mode 100644 index 0000000000..613e499ae0 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/main/java/org/apache/maven/it0001/Person.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0001; + +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/it0002/src/main/java/org/apache/maven/it0002/Person.java b/maven-core-integration-tests/src/test/resources/it0002/src/main/java/org/apache/maven/it0002/Person.java new file mode 100644 index 0000000000..6d89b1a6d1 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/main/java/org/apache/maven/it0002/Person.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0002; + +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/it0002/src/main/resources/it0001.properties b/maven-core-integration-tests/src/test/resources/it0002/src/main/resources/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/main/resources/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0002/src/main/resources/it0002.properties b/maven-core-integration-tests/src/test/resources/it0002/src/main/resources/it0002.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/main/resources/it0002.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0001/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0001/PersonTest.java new file mode 100644 index 0000000000..80014fa03b --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0001/PersonTest.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0001; + +import junit.framework.TestCase; + +public class PersonTest + extends TestCase +{ + public void testPerson() + { + Person person = new Person(); + + person.setName( "foo" ); + + assertEquals( "foo", person.getName() ); + } +} diff --git a/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0002/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0002/PersonTest.java new file mode 100644 index 0000000000..e095c90a12 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/src/test/java/org/apache/maven/it0002/PersonTest.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0002; + +import junit.framework.TestCase; + +public class PersonTest + extends TestCase +{ + public void testPerson() + { + Person person = new Person(); + + person.setName( "foo" ); + + assertEquals( "foo", person.getName() ); + } +} diff --git a/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0001.properties b/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0002.properties b/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0002.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0002/target/classes/it0002.properties @@ -0,0 +1 @@ +name = jason