From 522f5abc8164245621a164aaf3123f9c350be15d Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Thu, 19 Oct 2006 20:46:00 +0000 Subject: [PATCH] o adding IT it0055 git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465829 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/resources/it0055/pom.xml | 35 +++++++++++++++++++ .../java/org/apache/maven/it0001/Person.java | 16 +++++++++ .../org/apache/maven/it0001/PersonTwo.java | 16 +++++++++ .../src/main/resources/it0001.properties | 1 + .../org/apache/maven/it0001/PersonTest.java | 16 +++++++++ .../apache/maven/it0001/PersonTwoTest.java | 16 +++++++++ 6 files changed, 100 insertions(+) create mode 100644 maven-core-integration-tests/src/test/resources/it0055/pom.xml create mode 100644 maven-core-integration-tests/src/test/resources/it0055/src/main/java/org/apache/maven/it0001/Person.java create mode 100644 maven-core-integration-tests/src/test/resources/it0055/src/main/java/org/apache/maven/it0001/PersonTwo.java create mode 100644 maven-core-integration-tests/src/test/resources/it0055/src/main/resources/it0001.properties create mode 100644 maven-core-integration-tests/src/test/resources/it0055/src/test/java/org/apache/maven/it0001/PersonTest.java create mode 100644 maven-core-integration-tests/src/test/resources/it0055/src/test/java/org/apache/maven/it0001/PersonTwoTest.java diff --git a/maven-core-integration-tests/src/test/resources/it0055/pom.xml b/maven-core-integration-tests/src/test/resources/it0055/pom.xml new file mode 100644 index 0000000000..2c8b26d19f --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0055/pom.xml @@ -0,0 +1,35 @@ + + 4.0.0 + org.apache.maven + maven-core-it0055 + Test that source includes/excludes with in the compiler plugin config. + This will test excludes and testExcludes... + jar + 1.0 + + + junit + junit + 3.8.1 + jar + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + **/PersonTwo.java + + + **/PersonTwoTest.java + + + + + + diff --git a/maven-core-integration-tests/src/test/resources/it0055/src/main/java/org/apache/maven/it0001/Person.java b/maven-core-integration-tests/src/test/resources/it0055/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/it0055/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/it0055/src/main/java/org/apache/maven/it0001/PersonTwo.java b/maven-core-integration-tests/src/test/resources/it0055/src/main/java/org/apache/maven/it0001/PersonTwo.java new file mode 100644 index 0000000000..981e8f653e --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0055/src/main/java/org/apache/maven/it0001/PersonTwo.java @@ -0,0 +1,16 @@ +package org.apache.maven.it0001; + +public class PersonTwo +{ + 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/it0055/src/main/resources/it0001.properties b/maven-core-integration-tests/src/test/resources/it0055/src/main/resources/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0055/src/main/resources/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-integration-tests/src/test/resources/it0055/src/test/java/org/apache/maven/it0001/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0055/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/it0055/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/it0055/src/test/java/org/apache/maven/it0001/PersonTwoTest.java b/maven-core-integration-tests/src/test/resources/it0055/src/test/java/org/apache/maven/it0001/PersonTwoTest.java new file mode 100644 index 0000000000..ccec93c557 --- /dev/null +++ b/maven-core-integration-tests/src/test/resources/it0055/src/test/java/org/apache/maven/it0001/PersonTwoTest.java @@ -0,0 +1,16 @@ +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() ); + } +}