From d9db44269047dfe98860a47fffc66ff2707f5a6e Mon Sep 17 00:00:00 2001
From: Jason van Zyl <jvanzyl@apache.org>
Date: Thu, 19 Oct 2006 20:41:15 +0000
Subject: [PATCH] o adding IT it0007

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@465782 13f79535-47bb-0310-9956-ffa450edef68
---
 .../it0007/maven-it-support-parent-1.0.pom    | 13 +++++++++++
 .../src/test/resources/it0007/pom.xml         | 22 +++++++++++++++++++
 .../java/org/apache/maven/it0002/Person.java  | 16 ++++++++++++++
 .../src/main/resources/it0007.properties      |  1 +
 .../org/apache/maven/it0007/PersonTest.java   | 16 ++++++++++++++
 5 files changed, 68 insertions(+)
 create mode 100644 maven-core-integration-tests/src/test/resources/it0007/maven-it-support-parent-1.0.pom
 create mode 100644 maven-core-integration-tests/src/test/resources/it0007/pom.xml
 create mode 100644 maven-core-integration-tests/src/test/resources/it0007/src/main/java/org/apache/maven/it0002/Person.java
 create mode 100644 maven-core-integration-tests/src/test/resources/it0007/src/main/resources/it0007.properties
 create mode 100644 maven-core-integration-tests/src/test/resources/it0007/src/test/java/org/apache/maven/it0007/PersonTest.java

diff --git a/maven-core-integration-tests/src/test/resources/it0007/maven-it-support-parent-1.0.pom b/maven-core-integration-tests/src/test/resources/it0007/maven-it-support-parent-1.0.pom
new file mode 100644
index 0000000000..9d90c4b878
--- /dev/null
+++ b/maven-core-integration-tests/src/test/resources/it0007/maven-it-support-parent-1.0.pom
@@ -0,0 +1,13 @@
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven</groupId>
+  <artifactId>maven-core-it-support-parent</artifactId>
+  <version>1.0</version>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-core-it-support</artifactId>
+      <version>1.0</version>
+    </dependency>
+  </dependencies>  
+</project>
diff --git a/maven-core-integration-tests/src/test/resources/it0007/pom.xml b/maven-core-integration-tests/src/test/resources/it0007/pom.xml
new file mode 100644
index 0000000000..cb68fe69bf
--- /dev/null
+++ b/maven-core-integration-tests/src/test/resources/it0007/pom.xml
@@ -0,0 +1,22 @@
+<model>
+  <parent>
+    <artifactId>maven-plugin-parent</artifactId>
+    <groupId>org.apache.maven.plugins</groupId>
+    <version>2.0</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>maven-core-it0007</artifactId>
+  <description>We specify a parent in the POM and make sure that it is downloaded as
+        part of the process.        </description>
+  <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>
+</model>
diff --git a/maven-core-integration-tests/src/test/resources/it0007/src/main/java/org/apache/maven/it0002/Person.java b/maven-core-integration-tests/src/test/resources/it0007/src/main/java/org/apache/maven/it0002/Person.java
new file mode 100644
index 0000000000..fd86c7e709
--- /dev/null
+++ b/maven-core-integration-tests/src/test/resources/it0007/src/main/java/org/apache/maven/it0002/Person.java
@@ -0,0 +1,16 @@
+package org.apache.maven.it0007;
+
+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/it0007/src/main/resources/it0007.properties b/maven-core-integration-tests/src/test/resources/it0007/src/main/resources/it0007.properties
new file mode 100644
index 0000000000..f54f8ab106
--- /dev/null
+++ b/maven-core-integration-tests/src/test/resources/it0007/src/main/resources/it0007.properties
@@ -0,0 +1 @@
+name = jason
diff --git a/maven-core-integration-tests/src/test/resources/it0007/src/test/java/org/apache/maven/it0007/PersonTest.java b/maven-core-integration-tests/src/test/resources/it0007/src/test/java/org/apache/maven/it0007/PersonTest.java
new file mode 100644
index 0000000000..228f5f0e96
--- /dev/null
+++ b/maven-core-integration-tests/src/test/resources/it0007/src/test/java/org/apache/maven/it0007/PersonTest.java
@@ -0,0 +1,16 @@
+package org.apache.maven.it0007;
+
+import junit.framework.TestCase;
+
+public class PersonTest
+    extends TestCase
+{
+    public void testPerson()
+    {
+        Person person = new Person();
+        
+        person.setName( "foo" );
+        
+        assertEquals( "foo", person.getName() );
+    }
+}