From 68e9b92b4ec85d94df7fa1c5a611fcbbc1c90aaa Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sat, 20 Sep 2008 22:42:43 +0000 Subject: [PATCH] o Decoupled ITs from production versions of core plugins git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@697429 13f79535-47bb-0310-9956-ffa450edef68 --- .../integrationtests/MavenIT0051Test.java | 4 +- .../integrationtests/MavenIT0052Test.java | 3 +- .../src/test/resources/it0051/pom.xml | 60 ++++++++++--------- .../java/org/apache/maven/it0051/Person.java | 16 ----- .../src/main/resources/it0051.properties | 1 - .../org/apache/maven/it0051/PersonTest.java | 16 ----- .../src/test/resources/it0052/pom.xml | 55 +++++++++++++---- .../java/org/apache/maven/it0052/Person.java | 16 ----- .../src/main/resources/it0052.properties | 1 - .../org/apache/maven/it0052/PersonTest.java | 16 ----- 10 files changed, 78 insertions(+), 110 deletions(-) delete mode 100644 its/core-integration-tests/src/test/resources/it0051/src/main/java/org/apache/maven/it0051/Person.java delete mode 100644 its/core-integration-tests/src/test/resources/it0051/src/main/resources/it0051.properties delete mode 100644 its/core-integration-tests/src/test/resources/it0051/src/test/java/org/apache/maven/it0051/PersonTest.java delete mode 100644 its/core-integration-tests/src/test/resources/it0052/src/main/java/org/apache/maven/it0052/Person.java delete mode 100644 its/core-integration-tests/src/test/resources/it0052/src/main/resources/it0052.properties delete mode 100644 its/core-integration-tests/src/test/resources/it0052/src/test/java/org/apache/maven/it0052/PersonTest.java diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java index 0a342bee67..29e92c050c 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0051Test.java @@ -29,8 +29,8 @@ public class MavenIT0051Test cliOptions.add( "--no-plugin-registry -DperformRelease=true" ); verifier.setCliOptions( cliOptions ); verifier.executeGoal( "package" ); - verifier.assertFilePresent( "target/maven-it-it0051-1.0.jar" ); - verifier.assertFilePresent( "target/maven-it-it0051-1.0-sources.jar" ); + verifier.assertFilePresent( "target/source-jar.txt" ); + verifier.assertFilePresent( "target/javadoc-jar.txt" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0052Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0052Test.java index 32e9d93e1c..2f129b527f 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0052Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0052Test.java @@ -25,7 +25,8 @@ public class MavenIT0052Test verifier.setCliOptions( cliOptions ); verifier.executeGoal( "package" ); verifier.assertFilePresent( "target/maven-it-it0052-1.0.jar" ); - verifier.assertFileNotPresent( "target/maven-it-it0052-1.0-sources.jar" ); + verifier.assertFileNotPresent( "target/source-jar.txt" ); + verifier.assertFileNotPresent( "target/javadoc-jar.txt" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); diff --git a/its/core-integration-tests/src/test/resources/it0051/pom.xml b/its/core-integration-tests/src/test/resources/it0051/pom.xml index 2d72aebc0a..8253545632 100644 --- a/its/core-integration-tests/src/test/resources/it0051/pom.xml +++ b/its/core-integration-tests/src/test/resources/it0051/pom.xml @@ -1,42 +1,46 @@ + + + + 4.0.0 - Maven Integration Test :: it0051 + org.apache.maven.its.it0051 maven-it-it0051 - Test source attachment when -DperformRelease=true is specified. - jar 1.0 - - - junit - junit - 3.8.1 - jar - test - - + jar + + Maven Integration Test :: it0051 + Test source attachment when -DperformRelease=true is specified. - + maven-javadoc-plugin - 2.4 - - - org.codehaus.plexus - plexus-utils - 1.5.4 - - + 0.1-stub-SNAPSHOT + + + maven-source-plugin + 0.1-stub-SNAPSHOT diff --git a/its/core-integration-tests/src/test/resources/it0051/src/main/java/org/apache/maven/it0051/Person.java b/its/core-integration-tests/src/test/resources/it0051/src/main/java/org/apache/maven/it0051/Person.java deleted file mode 100644 index a986ea2ea4..0000000000 --- a/its/core-integration-tests/src/test/resources/it0051/src/main/java/org/apache/maven/it0051/Person.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.apache.maven.it0051; - -public class Person -{ - private String name; - - public void setName( String name ) - { - this.name = name; - } - - public String getName() - { - return name; - } -} diff --git a/its/core-integration-tests/src/test/resources/it0051/src/main/resources/it0051.properties b/its/core-integration-tests/src/test/resources/it0051/src/main/resources/it0051.properties deleted file mode 100644 index f54f8ab106..0000000000 --- a/its/core-integration-tests/src/test/resources/it0051/src/main/resources/it0051.properties +++ /dev/null @@ -1 +0,0 @@ -name = jason diff --git a/its/core-integration-tests/src/test/resources/it0051/src/test/java/org/apache/maven/it0051/PersonTest.java b/its/core-integration-tests/src/test/resources/it0051/src/test/java/org/apache/maven/it0051/PersonTest.java deleted file mode 100644 index 1b898fc7be..0000000000 --- a/its/core-integration-tests/src/test/resources/it0051/src/test/java/org/apache/maven/it0051/PersonTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.apache.maven.it0051; - -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/its/core-integration-tests/src/test/resources/it0052/pom.xml b/its/core-integration-tests/src/test/resources/it0052/pom.xml index dd3fb7dd0a..ab87bfb47b 100644 --- a/its/core-integration-tests/src/test/resources/it0052/pom.xml +++ b/its/core-integration-tests/src/test/resources/it0052/pom.xml @@ -1,19 +1,48 @@ + + + + 4.0.0 - Maven Integration Test :: it0052 + org.apache.maven.its.it0052 maven-it-it0052 - Test that source attachment doesn't take place when - -DperformRelease=true is missing. - jar 1.0 - - - junit - junit - 3.8.1 - jar - test - - + jar + + Maven Integration Test :: it0052 + Test that source attachment doesn't take place when -DperformRelease=true is missing. + + + + + + + maven-javadoc-plugin + 0.1-stub-SNAPSHOT + + + maven-source-plugin + 0.1-stub-SNAPSHOT + + + + diff --git a/its/core-integration-tests/src/test/resources/it0052/src/main/java/org/apache/maven/it0052/Person.java b/its/core-integration-tests/src/test/resources/it0052/src/main/java/org/apache/maven/it0052/Person.java deleted file mode 100644 index da017ed481..0000000000 --- a/its/core-integration-tests/src/test/resources/it0052/src/main/java/org/apache/maven/it0052/Person.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.apache.maven.it0052; - -public class Person -{ - private String name; - - public void setName( String name ) - { - this.name = name; - } - - public String getName() - { - return name; - } -} diff --git a/its/core-integration-tests/src/test/resources/it0052/src/main/resources/it0052.properties b/its/core-integration-tests/src/test/resources/it0052/src/main/resources/it0052.properties deleted file mode 100644 index f54f8ab106..0000000000 --- a/its/core-integration-tests/src/test/resources/it0052/src/main/resources/it0052.properties +++ /dev/null @@ -1 +0,0 @@ -name = jason diff --git a/its/core-integration-tests/src/test/resources/it0052/src/test/java/org/apache/maven/it0052/PersonTest.java b/its/core-integration-tests/src/test/resources/it0052/src/test/java/org/apache/maven/it0052/PersonTest.java deleted file mode 100644 index 30969834f0..0000000000 --- a/its/core-integration-tests/src/test/resources/it0052/src/test/java/org/apache/maven/it0052/PersonTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.apache.maven.it0052; - -import junit.framework.TestCase; - -public class PersonTest - extends TestCase -{ - public void testPerson() - { - Person person = new Person(); - - person.setName( "foo" ); - - assertEquals( "foo", person.getName() ); - } -}