From cd481811440a8a03feafc33dee5ab96bc230b801 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Mon, 22 Aug 2005 19:03:31 +0000 Subject: [PATCH] adding integration test for single buildnumber per g:a git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@239220 13f79535-47bb-0310-9956-ffa450edef68 --- maven-core-it/it0053/cli-options.txt | 1 + maven-core-it/it0053/expected-results.txt | 2 ++ maven-core-it/it0053/goals.txt | 1 + maven-core-it/it0053/pom.xml | 23 +++++++++++++++++++ .../java/org/apache/maven/it0001/Person.java | 16 +++++++++++++ .../src/main/resources/it0001.properties | 1 + .../org/apache/maven/it0001/PersonTest.java | 16 +++++++++++++ 7 files changed, 60 insertions(+) create mode 100644 maven-core-it/it0053/cli-options.txt create mode 100644 maven-core-it/it0053/expected-results.txt create mode 100644 maven-core-it/it0053/goals.txt create mode 100644 maven-core-it/it0053/pom.xml create mode 100644 maven-core-it/it0053/src/main/java/org/apache/maven/it0001/Person.java create mode 100644 maven-core-it/it0053/src/main/resources/it0001.properties create mode 100644 maven-core-it/it0053/src/test/java/org/apache/maven/it0001/PersonTest.java diff --git a/maven-core-it/it0053/cli-options.txt b/maven-core-it/it0053/cli-options.txt new file mode 100644 index 0000000000..1aa671e31f --- /dev/null +++ b/maven-core-it/it0053/cli-options.txt @@ -0,0 +1 @@ +--check-plugin-latest --no-plugin-registry diff --git a/maven-core-it/it0053/expected-results.txt b/maven-core-it/it0053/expected-results.txt new file mode 100644 index 0000000000..254f18af10 --- /dev/null +++ b/maven-core-it/it0053/expected-results.txt @@ -0,0 +1,2 @@ +target/maven-core-it0051-1.0.jar +!target/maven-core-it0051-1.0-sources.jar diff --git a/maven-core-it/it0053/goals.txt b/maven-core-it/it0053/goals.txt new file mode 100644 index 0000000000..ba3bd78738 --- /dev/null +++ b/maven-core-it/it0053/goals.txt @@ -0,0 +1 @@ +package diff --git a/maven-core-it/it0053/pom.xml b/maven-core-it/it0053/pom.xml new file mode 100644 index 0000000000..f76f524ac6 --- /dev/null +++ b/maven-core-it/it0053/pom.xml @@ -0,0 +1,23 @@ + + 4.0.0 + org.apache.maven.it + maven-core-it0053 + jar + 1.0-SNAPSHOT + + + junit + junit + 3.8.1 + jar + test + + + + + + test + file:target/test-repo + + + diff --git a/maven-core-it/it0053/src/main/java/org/apache/maven/it0001/Person.java b/maven-core-it/it0053/src/main/java/org/apache/maven/it0001/Person.java new file mode 100644 index 0000000000..613e499ae0 --- /dev/null +++ b/maven-core-it/it0053/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-it/it0053/src/main/resources/it0001.properties b/maven-core-it/it0053/src/main/resources/it0001.properties new file mode 100644 index 0000000000..f54f8ab106 --- /dev/null +++ b/maven-core-it/it0053/src/main/resources/it0001.properties @@ -0,0 +1 @@ +name = jason diff --git a/maven-core-it/it0053/src/test/java/org/apache/maven/it0001/PersonTest.java b/maven-core-it/it0053/src/test/java/org/apache/maven/it0001/PersonTest.java new file mode 100644 index 0000000000..80014fa03b --- /dev/null +++ b/maven-core-it/it0053/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() ); + } +}