diff --git a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0024Test.java b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0024Test.java index 453492253b..82444cc66e 100644 --- a/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0024Test.java +++ b/its/core-integration-tests/src/test/java/org/apache/maven/integrationtests/MavenIT0024Test.java @@ -11,18 +11,18 @@ public class MavenIT0024Test /** * Test usage of <executions/> inside a plugin rather than <goals/> - * that are directly inside th plugin. + * that are directly inside the plugin. */ public void testit0024() throws Exception { File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0024" ); + Verifier verifier = new Verifier( testDir.getAbsolutePath() ); - verifier.executeGoal( "generate-sources" ); - verifier.assertFilePresent( "target/classes/org/apache/maven/it0024/Person.class" ); + verifier.executeGoal( "initialize" ); + verifier.assertFilePresent( "plugin-exec-configuration.txt" ); verifier.verifyErrorFreeLog(); verifier.resetStreams(); - } -} +} diff --git a/its/core-integration-tests/src/test/resources/it0024/pom.xml b/its/core-integration-tests/src/test/resources/it0024/pom.xml index 0987f94130..fe0f268ac4 100644 --- a/its/core-integration-tests/src/test/resources/it0024/pom.xml +++ b/its/core-integration-tests/src/test/resources/it0024/pom.xml @@ -1,36 +1,52 @@ + + + + 4.0.0 - Maven Integration Test :: it0024 + org.apache.maven.its.it0024 maven-it-it0024 - Test usage of <executions/> inside a plugin rather than <goals/> - that are directly inside th plugin. - jar 1.0 - - - junit - junit - 3.8.1 - jar - test - - + jar + + Maven Integration Test :: it0024 + + Test usage of <executions/> inside a plugin rather than <goals/> + that are directly inside the plugin. + + - org.apache.maven.plugins - maven-compiler-plugin + org.apache.maven.its.plugins + maven-it-plugin-file test - generate-sources + initialize - 1.4 - 1.4 + plugin-exec-configuration.txt - compile + file diff --git a/its/core-integration-tests/src/test/resources/it0024/src/main/java/org/apache/maven/it0024/Person.java b/its/core-integration-tests/src/test/resources/it0024/src/main/java/org/apache/maven/it0024/Person.java deleted file mode 100644 index 8b27d410f2..0000000000 --- a/its/core-integration-tests/src/test/resources/it0024/src/main/java/org/apache/maven/it0024/Person.java +++ /dev/null @@ -1,18 +0,0 @@ -package org.apache.maven.it0024; - -public class Person -{ - private String name; - - public void setName( String name ) - { - this.name = name; - - assert true; - } - - public String getName() - { - return name; - } -} diff --git a/its/core-integration-tests/src/test/resources/it0024/src/test/java/org/apache/maven/it0024/PersonTest.java b/its/core-integration-tests/src/test/resources/it0024/src/test/java/org/apache/maven/it0024/PersonTest.java deleted file mode 100644 index 9d4a4b4080..0000000000 --- a/its/core-integration-tests/src/test/resources/it0024/src/test/java/org/apache/maven/it0024/PersonTest.java +++ /dev/null @@ -1,16 +0,0 @@ -package org.apache.maven.it0024; - -import junit.framework.TestCase; - -public class PersonTest - extends TestCase -{ - public void testPerson() - { - Person person = new Person(); - - person.setName( "foo" ); - - assertEquals( "foo", person.getName() ); - } -}