Author: carlos
Date: Mon Jan  2 08:09:15 2006
New Revision: 365369

URL: http://svn.apache.org/viewcvs?rev=365369&view=rev
Log:
Added integration test
PR: MSUREFIRE-20

Added:
    maven/plugins/trunk/maven-surefire-plugin/src/it/
    maven/plugins/trunk/maven-surefire-plugin/src/it/test1/
    maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml   (with 
props)
    maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/
    maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/
    maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/
    
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
   (with props)

Added: maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml?rev=365369&view=auto
==============================================================================
--- maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml (added)
+++ maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml Mon Jan  2 
08:09:15 2006
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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</groupId>
+  <artifactId>test1</artifactId>
+  <version>1.0-SNAPSHOT</version>
+  <name>Test for MSUREFIRE-20</name>
+  <description>forkMode=pertest fails to call setUp</description>
+ 
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <forkMode>pertest</forkMode>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: maven/plugins/trunk/maven-surefire-plugin/src/it/test1/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: 
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
URL: 
http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java?rev=365369&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
 (added)
+++ 
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
 Mon Jan  2 08:09:15 2006
@@ -0,0 +1,19 @@
+import junit.framework.TestCase;
+
+public class SurefireTest extends TestCase {
+    
+       private boolean setupCalled = false;
+
+       protected void setUp() {
+               setupCalled = true;
+       }
+       
+       protected void tearDown() {
+               // is there a way to tests to see if tearDown was called?
+       }
+       
+       public void testSetup() {
+               assertTrue("Setup was not called", setupCalled);
+       }
+
+}

Propchange: 
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
maven/plugins/trunk/maven-surefire-plugin/src/it/test1/src/test/java/SurefireTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"


Reply via email to