You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/09/25 23:30:24 UTC

svn commit: r699097 - in /maven/core-integration-testing/trunk/core-it-suite/src/test: java/org/apache/maven/it/MavenIT0056Test.java resources/it0056/pom.xml resources/it0056/src/

Author: bentmann
Date: Thu Sep 25 14:30:23 2008
New Revision: 699097

URL: http://svn.apache.org/viewvc?rev=699097&view=rev
Log:
o Decoupled it0056 from Compiler Plugin

Removed:
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/src/
Modified:
    maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java
    maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/pom.xml

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java?rev=699097&r1=699096&r2=699097&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/java/org/apache/maven/it/MavenIT0056Test.java Thu Sep 25 14:30:23 2008
@@ -29,24 +29,19 @@
 {
 
     /**
-     * Test that multiple executions of the compile goal with different
-     * includes/excludes will succeed.
+     * Test that multiple executions of a goal with different
+     * parameter values will succeed.
      */
     public void testit0056()
         throws Exception
     {
         File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/it0056" );
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
-        verifier.executeGoal( "test-compile" );
-        verifier.assertFilePresent( "target/classes/org/apache/maven/it0056/Person.class" );
-        verifier.assertFilePresent( "target/classes/org/apache/maven/it0056/PersonTwo.class" );
-        verifier.assertFilePresent( "target/classes/org/apache/maven/it0056/PersonThree.class" );
-        verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0056/PersonTest.class" );
-        verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0056/PersonTwoTest.class" );
-        verifier.assertFilePresent( "target/test-classes/org/apache/maven/it0056/PersonThreeTest.class" );
+        verifier.executeGoal( "initialize" );
+        verifier.assertFilePresent( "target/first-exec.txt" );
+        verifier.assertFilePresent( "target/file.txt" );
         verifier.verifyErrorFreeLog();
         verifier.resetStreams();
-
     }
-}
 
+}

Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/pom.xml
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/pom.xml?rev=699097&r1=699096&r2=699097&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/pom.xml (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/it0056/pom.xml Thu Sep 25 14:30:23 2008
@@ -1,43 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
 <project>
   <modelVersion>4.0.0</modelVersion>
-  <name>Maven Integration Test :: it0056</name> 
+
   <groupId>org.apache.maven.its.it0056</groupId>
   <artifactId>maven-it-it0056</artifactId>
-  <description>Test that multiple executions of the compile goal with different
-        includes/excludes will succeed.</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>
+  <packaging>jar</packaging>
+
+  <name>Maven Integration Test :: it0056</name> 
+  <description>
+    Test that multiple executions of a goal with different
+    parameter values will succeed.
+  </description>
 
   <build>
     <plugins>
       <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
+        <groupId>org.apache.maven.its.plugins</groupId>
+        <artifactId>maven-it-plugin-file</artifactId>
         <executions>
           <execution>
-            <id>validation-phase-execution</id>
+            <id>first-exec</id>
             <phase>validate</phase>
             <goals>
-              <goal>compile</goal>
+              <goal>file</goal>
             </goals>
             <configuration>
-              <excludes>
-                <exclude implementation="java.lang.String">**/PersonTwo.java</exclude>
-              </excludes>
-              <testExcludes>
-                <testExclude implementation="java.lang.String">**/PersonTwoTest.java</testExclude>
-              </testExcludes>
+              <pathname>target/first-exec.txt</pathname>
             </configuration>
           </execution>
+          <execution>
+            <id>second-exec</id>
+            <phase>initialize</phase>
+            <goals>
+              <goal>file</goal>
+            </goals>
+            <!-- just use default values here -->
+          </execution>
         </executions>
       </plugin>
     </plugins>