maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From steph...@apache.org
Subject svn commit: r897127 [1/3] - in /maven/surefire/trunk: ./ maven-failsafe-plugin/ maven-failsafe-plugin/src/ maven-failsafe-plugin/src/it/ maven-failsafe-plugin/src/it/jetty-war-test-failing/ maven-failsafe-plugin/src/it/jetty-war-test-failing/src/ maven...
Date Fri, 08 Jan 2010 08:03:53 GMT
Author: stephenc
Date: Fri Jan  8 08:03:49 2010
New Revision: 897127

URL: http://svn.apache.org/viewvc?rev=897127&view=rev
Log:
[SUREFIRE-591] initial commit of maven-failsafe-plugin from https://svn.codehaus.org/mojo/trunk/mojo/failsafe-maven-plugin@11598 after sync-up with maven-surefire-plugin@897124

o Some of the formatting has been modified in m-surefire-p in order to simplify sync between the two plugins

o Some parts of the m-surefire-p site have been updated to reference failsafe

o Still have to refactor the two plugins to introduce a common module containing the shared code

Added:
    maven/surefire/trunk/maven-failsafe-plugin/   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/pom.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/main/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/IntegrationTestMojo.java   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/VerifyMojo.java   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/main/java/org/apache/maven/plugin/failsafe/package.html   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/main/mdo/
    maven/surefire/trunk/maven-failsafe-plugin/src/main/mdo/failsafe-summary.mdo   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/additional-classpath.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/class-loading.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/debugging.apt   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/inclusion-exclusion.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/single-test.apt   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/skipping-test.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/system-properties.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/examples/testng.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/index.apt   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/apt/usage.apt.vm   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/fml/
    maven/surefire/trunk/maven-failsafe-plugin/src/site/fml/faq.fml   (with props)
    maven/surefire/trunk/maven-failsafe-plugin/src/site/site.xml   (with props)
Modified:
    maven/surefire/trunk/maven-surefire-plugin/pom.xml
    maven/surefire/trunk/maven-surefire-plugin/src/main/java/org/apache/maven/plugin/surefire/SurefirePlugin.java
    maven/surefire/trunk/maven-surefire-plugin/src/site/apt/examples/skipping-test.apt.vm
    maven/surefire/trunk/pom.xml

Propchange: maven/surefire/trunk/maven-failsafe-plugin/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Fri Jan  8 08:03:49 2010
@@ -0,0 +1,13 @@
+cobertura.ser
+*~
+*.log
+*.ipr
+*.iws
+*.iml
+target
+.project
+.classpath
+.wtpmodules
+.settings
+bin
+target-eclipse

Added: maven/surefire/trunk/maven-failsafe-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/pom.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/pom.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/pom.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,291 @@
+<?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>
+
+  <parent>
+    <groupId>org.apache.maven.surefire</groupId>
+    <artifactId>surefire</artifactId>
+    <version>2.5-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <artifactId>maven-failsafe-plugin</artifactId>
+  <groupId>org.apache.maven.plugins</groupId>
+  <packaging>maven-plugin</packaging>
+
+  <name>Maven Failsafe Plugin</name>
+
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <mailingLists>
+    <!-- duplication from maven-plugins pom - temporary until they inherit properly -->
+    <mailingList>
+      <name>Maven User List</name>
+      <subscribe>users-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>users-unsubscribe@maven.apache.org</unsubscribe>
+      <post>users@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-users</archive>
+      <otherArchives>
+        <otherArchive>http://www.mail-archive.com/users@maven.apache.org/</otherArchive>
+        <otherArchive>http://www.nabble.com/Maven---Users-f178.html</otherArchive>
+      </otherArchives>
+    </mailingList>
+    <mailingList>
+      <name>Maven Developer List</name>
+      <subscribe>dev-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>dev-unsubscribe@maven.apache.org</unsubscribe>
+      <post>dev@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Commits List</name>
+      <subscribe>commits-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>commits-unsubscribe@maven.apache.org</unsubscribe>
+      <post>commits@maven.apache.org</post>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-dev</archive>
+    </mailingList>
+    <!-- duplication from maven-parent pom - temporary until they inherit properly -->
+    <mailingList>
+      <name>Maven Announcements List</name>
+      <post>announce@maven.apache.org</post>
+      <subscribe>announce-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>announce-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-announce/</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Issues List</name>
+      <post>issues@maven.apache.org</post>
+      <subscribe>issues-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>issues-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-issues/</archive>
+    </mailingList>
+    <mailingList>
+      <name>Maven Notifications List</name>
+      <post>notifications@maven.apache.org</post>
+      <subscribe>notifications-subscribe@maven.apache.org</subscribe>
+      <unsubscribe>notifications-unsubscribe@maven.apache.org</unsubscribe>
+      <archive>http://mail-archives.apache.org/mod_mbox/maven-notifications/</archive>
+    </mailingList>
+  </mailingLists>
+
+  <distributionManagement>
+    <site>
+      <id>apache.website</id>
+      <url>scp://people.apache.org/www/maven.apache.org/plugins/maven-failsafe-plugin</url>
+    </site>
+  </distributionManagement>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-plugin-api</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.surefire</groupId>
+      <artifactId>surefire-booter</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.codehaus.plexus</groupId>
+      <artifactId>plexus-utils</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-artifact</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-project</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-core</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-toolchain</artifactId>
+      <version>2.0.9</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>2.5.1</version>
+        <executions>
+          <execution>
+            <id>generated-helpmojo</id>
+            <goals>
+              <goal>helpmojo</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-site-plugin</artifactId>
+        <configuration>
+          <stagingSiteURL>scp://people.apache.org/www/maven.apache.org/plugins/${project.artifactId}-${project.version}</stagingSiteURL>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.modello</groupId>
+        <artifactId>modello-maven-plugin</artifactId>
+        <version>1.0.1</version>
+        <executions>
+          <execution>
+            <goals>
+              <!-- Generate the xpp3 reader code -->
+              <goal>xpp3-reader</goal>
+              <!-- Generate the xpp3 writer code -->
+              <goal>xpp3-writer</goal>
+              <!-- Generate the Java sources for the model itself -->
+              <goal>java</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <models>
+            <model>src/main/mdo/failsafe-summary.mdo</model>
+          </models>
+          <version>2.4.3</version>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-invoker-plugin</artifactId>
+        <version>1.5</version>
+        <configuration>
+          <projectsDirectory>src/it</projectsDirectory>
+          <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
+          <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
+          <showErrors>true</showErrors>
+          <streamLogs>true</streamLogs>
+          <goals>
+            <goal>verify</goal>
+          </goals>
+          <setupIncludes>
+            <setupInclude>dummy-*/pom.xml</setupInclude>
+          </setupIncludes>
+          <pomIncludes>
+            <pomInclude>*/pom.xml</pomInclude>
+          </pomIncludes>
+          <postBuildHookScript>verify.bsh</postBuildHookScript>
+          <settingsFile>src/it/settings.xml</settingsFile>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-plugin-plugin</artifactId>
+        <version>2.5.1</version>
+      </plugin>
+    </plugins>
+  </reporting>
+
+  <profiles>
+    <!-- Force JDK 1.4 for this one, plugins can never be built on 1.3 -->
+    <profile>
+      <id>jdk1.3</id>
+      <build>
+        <pluginManagement>
+          <plugins>
+            <plugin>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <configuration>
+                <fork>false</fork>
+                <compilerVersion>1.4</compilerVersion>
+              </configuration>
+            </plugin>
+          </plugins>
+        </pluginManagement>
+      </build>
+    </profile>
+    <profile>
+      <id>ci</id>
+      <activation>
+        <property>
+          <name>enableCiProfile</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-docck-plugin</artifactId>
+            <version>1.0</version>
+            <executions>
+              <execution>
+                <goals>
+                  <goal>check</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    <profile>
+      <!-- run integration tests
+          to use this profile:
+          or run integration tests: mvn -Prun-its
+      -->
+      <id>run-its</id>
+      <build>
+        <defaultGoal>verify</defaultGoal>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-invoker-plugin</artifactId>
+            <configuration>
+              <streamLogs>false</streamLogs>
+            </configuration>
+            <executions>
+              <execution>
+                <id>integration-test</id>
+                <goals>
+                  <goal>install</goal>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>

Propchange: maven/surefire/trunk/maven-failsafe-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties Fri Jan  8 08:03:49 2010
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+invoker.buildResult=failure

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/invoker.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,136 @@
+<?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>localhost</groupId>
+  <artifactId>jetty-war-test-failing</artifactId>
+  <version>1.0</version>
+  <packaging>war</packaging>
+  <name>run failing tests in jetty container</name>
+  <dependencies>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.5</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>net.sourceforge.htmlunit</groupId>
+      <artifactId>htmlunit</artifactId>
+      <version>2.3</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <testResources>
+      <testResource>
+        <filtering>true</filtering>
+        <includes>
+          <include>integration-test.properties</include>
+        </includes>
+        <directory>${basedir}/src/test/resources</directory>
+      </testResource>
+      <testResource>
+        <filtering>false</filtering>
+        <excludes>
+          <exclude>integration-test.properties</exclude>
+        </excludes>
+        <directory>${basedir}/src/test/resources</directory>
+      </testResource>
+    </testResources>
+    <plugins>
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>maven-jetty-plugin</artifactId>
+        <version>6.1.16</version>
+        <configuration>
+          <stopPort>${integration-test-stop-port}</stopPort>
+          <stopKey>STOP</stopKey>
+          <contextPath>/</contextPath>
+        </configuration>
+        <executions>
+          <execution>
+            <id>start-jetty</id>
+            <phase>pre-integration-test</phase>
+            <goals>
+              <!-- stop any previous instance to free up the port -->
+              <goal>stop</goal>
+              <goal>run-exploded</goal>
+            </goals>
+            <configuration>
+              <scanIntervalSeconds>0</scanIntervalSeconds>
+              <daemon>true</daemon>
+            </configuration>
+          </execution>
+          <execution>
+            <id>stop-jetty</id>
+            <phase>post-integration-test</phase>
+            <goals>
+              <goal>stop</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>@project.groupId@</groupId>
+        <artifactId>@project.artifactId@</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>integration-test</id>
+            <goals>
+              <goal>integration-test</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>verify</id>
+            <goals>
+              <goal>verify</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    <integration-test-port>8080</integration-test-port>
+    <integration-test-stop-port>18009</integration-test-stop-port>
+  </properties>
+
+</project>

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,26 @@
+<?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.
+  -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         version="2.5">
+
+</web-app>
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html Fri Jan  8 08:03:49 2010
@@ -0,0 +1,27 @@
+<!--
+  ~ 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.
+  -->
+
+<html>
+<head>
+    <title>Hello World</title>
+</head>
+<body>
+<h1>Hello World</h1>
+</body>
+</html>
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java Fri Jan  8 08:03:49 2010
@@ -0,0 +1,64 @@
+package basic;
+
+/*
+ * 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.
+ */
+
+import java.util.Properties;
+import java.io.IOException;
+
+import junit.framework.*;
+
+import com.gargoylesoftware.htmlunit.WebClient;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+public class BasicIT
+    extends TestCase
+{
+
+    private WebClient client;
+
+    private String baseUrl;
+
+    private final Properties properties = new Properties();
+
+    public void setUp()
+        throws IOException
+    {
+        client = new WebClient();
+        properties.load( getClass().getResourceAsStream( "/integration-test.properties" ) );
+        baseUrl = properties.getProperty( "baseUrl" );
+    }
+
+    public void tearDown()
+    {
+        if ( client != null )
+        {
+            client.closeAllWindows();
+            client = null;
+        }
+    }
+
+    public void testSmokes()
+        throws Exception
+    {
+        client.setThrowExceptionOnFailingStatusCode( false );
+        HtmlPage page = client.getPage( baseUrl + "index.html" );
+        assertFalse( page.asText().contains( "Hello World" ) );
+    }
+}

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/java/basic/BasicIT.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties Fri Jan  8 08:03:49 2010
@@ -0,0 +1,23 @@
+#
+# 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.
+#
+
+#
+# The url where the web-app has been deployed to
+#
+baseUrl=http://localhost:${integration-test-port}/
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/src/test/resources/integration-test.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh Fri Jan  8 08:03:49 2010
@@ -0,0 +1,15 @@
+import java.io.*;
+import java.util.*;
+
+try {
+    File file = new File(basedir, "target/failsafe-reports/failsafe-summary.xml");
+    if (!file.exists() || file.isDirectory()) {
+        System.err.println("Could not find failsafe summary: " + file);
+        return false;
+    }
+} catch (Throwable t) {
+    t.printStackTrace();
+    return false;
+}
+
+return true;
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-failing/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties Fri Jan  8 08:03:49 2010
@@ -0,0 +1,19 @@
+#
+# 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.
+#
+invoker.buildResult=success

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/invoker.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,136 @@
+<?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>localhost</groupId>
+  <artifactId>jetty-war-test</artifactId>
+  <version>1.0</version>
+  <packaging>war</packaging>
+  <name>run passing tests in jetty container</name>
+  <dependencies>
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.5</version>
+      <scope>provided</scope>
+    </dependency>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.2</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>net.sourceforge.htmlunit</groupId>
+      <artifactId>htmlunit</artifactId>
+      <version>2.3</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <testResources>
+      <testResource>
+        <filtering>true</filtering>
+        <includes>
+          <include>integration-test.properties</include>
+        </includes>
+        <directory>${basedir}/src/test/resources</directory>
+      </testResource>
+      <testResource>
+        <filtering>false</filtering>
+        <excludes>
+          <exclude>integration-test.properties</exclude>
+        </excludes>
+        <directory>${basedir}/src/test/resources</directory>
+      </testResource>
+    </testResources>
+    <plugins>
+      <plugin>
+        <groupId>org.mortbay.jetty</groupId>
+        <artifactId>maven-jetty-plugin</artifactId>
+        <version>6.1.16</version>
+        <configuration>
+          <stopPort>${integration-test-stop-port}</stopPort>
+          <stopKey>STOP</stopKey>
+          <contextPath>/</contextPath>
+        </configuration>
+        <executions>
+          <execution>
+            <id>start-jetty</id>
+            <phase>pre-integration-test</phase>
+            <goals>
+              <!-- stop any previous instance to free up the port -->
+              <goal>stop</goal>
+              <goal>run-exploded</goal>
+            </goals>
+            <configuration>
+              <scanIntervalSeconds>0</scanIntervalSeconds>
+              <daemon>true</daemon>
+            </configuration>
+          </execution>
+          <execution>
+            <id>stop-jetty</id>
+            <phase>post-integration-test</phase>
+            <goals>
+              <goal>stop</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>@project.groupId@</groupId>
+        <artifactId>@project.artifactId@</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>integration-test</id>
+            <goals>
+              <goal>integration-test</goal>
+            </goals>
+          </execution>
+          <execution>
+            <id>verify</id>
+            <goals>
+              <goal>verify</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2</version>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    <integration-test-port>8080</integration-test-port>
+    <integration-test-stop-port>18009</integration-test-stop-port>
+  </properties>
+
+</project>

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,26 @@
+<?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.
+  -->
+
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
+         version="2.5">
+
+</web-app>
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html Fri Jan  8 08:03:49 2010
@@ -0,0 +1,27 @@
+<!--
+  ~ 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.
+  -->
+
+<html>
+<head>
+    <title>Hello World</title>
+</head>
+<body>
+<h1>Hello World</h1>
+</body>
+</html>
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/main/webapp/index.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java Fri Jan  8 08:03:49 2010
@@ -0,0 +1,64 @@
+package basic;
+
+/*
+ * 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.
+ */
+
+import java.util.Properties;
+import java.io.IOException;
+
+import junit.framework.*;
+
+import com.gargoylesoftware.htmlunit.WebClient;
+import com.gargoylesoftware.htmlunit.html.HtmlPage;
+
+public class BasicIT
+    extends TestCase
+{
+
+    private WebClient client;
+
+    private String baseUrl;
+
+    private final Properties properties = new Properties();
+
+    public void setUp()
+        throws IOException
+    {
+        client = new WebClient();
+        properties.load( getClass().getResourceAsStream( "/integration-test.properties" ) );
+        baseUrl = properties.getProperty( "baseUrl" );
+    }
+
+    public void tearDown()
+    {
+        if ( client != null )
+        {
+            client.closeAllWindows();
+            client = null;
+        }
+    }
+
+    public void testSmokes()
+        throws Exception
+    {
+        client.setThrowExceptionOnFailingStatusCode( false );
+        HtmlPage page = client.getPage( baseUrl + "index.html" );
+        assertTrue( page.asText().contains( "Hello World" ) );
+    }
+}

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/java/basic/BasicIT.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties Fri Jan  8 08:03:49 2010
@@ -0,0 +1,23 @@
+#
+# 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.
+#
+
+#
+# The url where the web-app has been deployed to
+#
+baseUrl=http://localhost:${integration-test-port}/
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/src/test/resources/integration-test.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh Fri Jan  8 08:03:49 2010
@@ -0,0 +1,15 @@
+import java.io.*;
+import java.util.*;
+
+try {
+    File file = new File(basedir, "target/failsafe-reports/failsafe-summary.xml");
+    if (!file.exists() || file.isDirectory()) {
+        System.err.println("Could not find failsafe summary: " + file);
+        return false;
+    }
+} catch (Throwable t) {
+    t.printStackTrace();
+    return false;
+}
+
+return true;
\ No newline at end of file

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/jetty-war-test-passing/verify.bsh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml?rev=897127&view=auto
==============================================================================
--- maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml (added)
+++ maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml Fri Jan  8 08:03:49 2010
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<settings>
+  <profiles>
+    <profile>
+      <id>it-repo</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <repositories>
+        <repository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </repository>
+      </repositories>
+      <pluginRepositories>
+        <pluginRepository>
+          <id>local.central</id>
+          <url>@localRepositoryUrl@</url>
+          <releases>
+            <enabled>true</enabled>
+          </releases>
+          <snapshots>
+            <enabled>true</enabled>
+          </snapshots>
+        </pluginRepository>
+      </pluginRepositories>
+    </profile>
+  </profiles>
+</settings>

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/surefire/trunk/maven-failsafe-plugin/src/it/settings.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message