maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r597803 - in /maven/surefire/trunk/surefire-integration-tests/src/test: java/org/apache/maven/surefire/its/ resources/sibling-aggregator/ resources/sibling-aggregator/aggregator/ resources/sibling-aggregator/child1/ resources/sibling-aggreg...
Date Sat, 24 Nov 2007 04:53:54 GMT
Author: dfabulich
Date: Fri Nov 23 20:53:53 2007
New Revision: 597803

URL: http://svn.apache.org/viewvc?rev=597803&view=rev
Log:
Added sibling aggregator test

Added:
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SiblingAggregatorTest.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/pom.xml
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/pom.xml
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/FooHolder.java
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/pom.xml
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/FooHolderTest.java

Added: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SiblingAggregatorTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SiblingAggregatorTest.java?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SiblingAggregatorTest.java
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/SiblingAggregatorTest.java
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,34 @@
+package org.apache.maven.surefire.its;
+
+import java.io.File;
+
+import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
+import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.ResourceExtractor;
+
+/**
+ * Test aggregator as a sibling to child modules; invokes modules as "../child"
+ * 
+ * @author <a href="mailto:dfabulich@apache.org">Dan Fabulich</a>
+ * 
+ */
+public class SiblingAggregatorTest
+    extends AbstractMavenIntegrationTestCase
+{
+    public void testSiblingAggregator ()
+        throws Exception
+    {
+        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/sibling-aggregator"
);
+
+        File aggregatorDir = new File( testDir, "aggregator" );
+        
+        Verifier verifier = new Verifier( aggregatorDir.getAbsolutePath() );
+        verifier.executeGoal( "test" );
+        verifier.verifyErrorFreeLog();
+        verifier.resetStreams();
+        
+        File child2Dir = new File( testDir, "child2" );
+        
+        HelperAssertions.assertTestSuiteResults( 1, 0, 0, 0, child2Dir );        
+    }
+}

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/pom.xml?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/pom.xml
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/aggregator/pom.xml
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,35 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.surefire.its.sibling-aggregator</groupId>
+  <artifactId>aggregator</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Test for aggregator whose modules are in ../child</name>
+  <packaging>pom</packaging>
+  <modules>
+    <module>../child1</module>
+    <module>../child2</module>
+  </modules>
+</project>
\ No newline at end of file

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/pom.xml?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/pom.xml
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/pom.xml
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,39 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.surefire.its.sibling-aggregator</groupId>
+  <artifactId>child1</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Test for aggregated child1</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/FooHolder.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/FooHolder.java?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/FooHolder.java
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child1/src/main/java/siblingAggregator/FooHolder.java
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,5 @@
+package siblingAggregator;
+
+public class FooHolder {
+    public static String getFoo() { return "foo"; }
+}
\ No newline at end of file

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/pom.xml?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/pom.xml
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/pom.xml
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,44 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.apache.maven.plugins.surefire.its.sibling-aggregator</groupId>
+  <artifactId>child2</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Test for aggregated child2</name>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven.plugins.surefire.its.sibling-aggregator</groupId>
+      <artifactId>child1</artifactId>
+      <version>1.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Added: maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/FooHolderTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/FooHolderTest.java?rev=597803&view=auto
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/FooHolderTest.java
(added)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/resources/sibling-aggregator/child2/src/test/java/siblingAggregator/FooHolderTest.java
Fri Nov 23 20:53:53 2007
@@ -0,0 +1,8 @@
+package siblingAggregator;
+
+public class FooHolderTest extends junit.framework.TestCase {
+    
+    public void testFoo() {
+        FooHolder.getFoo();
+    }
+}
\ No newline at end of file



Mime
View raw message