geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pra...@apache.org
Subject svn commit: r484701 - in /geronimo/server/trunk/testsuite/web-testsuite: ./ src/ src/site/ src/site/apt/ test-2.5-servlets/ test-2.5-servlets/src/ test-2.5-servlets/src/main/ test-2.5-servlets/src/main/java/ test-2.5-servlets/src/main/java/com/ test-2....
Date Fri, 08 Dec 2006 19:18:59 GMT
Author: prasad
Date: Fri Dec  8 11:18:58 2006
New Revision: 484701

URL: http://svn.apache.org/viewvc?view=rev&rev=484701
Log:
* creating web-testsuite with testcase for servlet 2.5.
* Thanks to Krishnakumar Balachandar & Anitha Krishnasamy

Added:
    geronimo/server/trunk/testsuite/web-testsuite/
    geronimo/server/trunk/testsuite/web-testsuite/pom.xml   (with props)
    geronimo/server/trunk/testsuite/web-testsuite/src/
    geronimo/server/trunk/testsuite/web-testsuite/src/site/
    geronimo/server/trunk/testsuite/web-testsuite/src/site/apt/
    geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml   (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml   (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
  (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
  (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/lib/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
  (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
  (with props)
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/
    geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
  (with props)

Added: geronimo/server/trunk/testsuite/web-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/pom.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/pom.xml (added)
+++ geronimo/server/trunk/testsuite/web-testsuite/pom.xml Fri Dec  8 11:18:58 2006
@@ -0,0 +1,102 @@
+<?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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<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.geronimo.testsuite</groupId>
+        <artifactId>testsuite</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <artifactId>web-testsuite</artifactId>
+    <name>Geronimo TestSuite, web-tier</name>
+    <packaging>pom</packaging>
+    
+    <description>
+        Geronimo web tier testsuite. 
+        Use this testsuite to test the webcontainer.
+         - Servlet 2.5
+         - JSP 2.1
+         - JSP Debug
+         - JSF
+         - JSTL
+    </description>
+    
+    <build>
+        <plugins>
+            <plugin>
+                <!-- This plugin is needed for all suite poms. -->
+                <groupId>org.apache.geronimo.plugins</groupId>
+                <artifactId>testsuite-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>generate-surefire-xml</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>generate-surefire-xml</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+    
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <!--
+            TODO: Hook up m-m-p to allow child modules to be built early during this modules
+                  compile (or something) phase.
+            -->
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.geronimo.plugins</groupId>
+                        <artifactId>selenium-maven-plugin</artifactId>
+                    </plugin>
+                    
+                    <plugin>
+                        <groupId>org.apache.geronimo.plugins</groupId>
+                        <artifactId>geronimo-maven-plugin</artifactId>
+                    </plugin>
+                    
+                    <plugin>
+                        <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                        <artifactId>maven-maven-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        
+        <profile>
+            <id>child</id>
+        </profile>
+    </profiles>
+    
+</project>

Propchange: geronimo/server/trunk/testsuite/web-testsuite/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml (added)
+++ geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml Fri Dec  8 11:18:58 2006
@@ -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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project name="${project.name}">
+
+    <body>
+
+        ${parentProject}
+
+        <links>
+            <item name="JIRA" href="http://issues.apache.org/jira/secure/BrowseProject.jspa?id=10220"/>
+        </links>
+        
+        ${modules}
+        
+        ${reports}
+
+    </body>
+
+</project>

Propchange: geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/src/site/site.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml (added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml Fri Dec  8 11:18:58
2006
@@ -0,0 +1,119 @@
+<?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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<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.geronimo.testsuite</groupId>
+        <artifactId>deployment-testsuite</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <artifactId>test-2.5-servlets</artifactId>
+    <name>Geronimo TestSuite, Deployment :: Test Servlets</name>
+    <packaging>war</packaging>
+    
+
+    <description>
+        Tests for the test-deployables.
+        Note the parent artifactId and the relativePath.
+        maven-maven-plugin:invoke executes the 'child' profile.
+        Since build executions are done here, a 'child' profile is explicitly defined here
to prevent inheriting other configurations and executions from parent.
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    
+    <profiles>
+        <profile>
+            <id>child</id>
+            <build>
+                <plugins>
+                  <plugin>
+                    <groupId>org.apache.geronimo.genesis.plugins</groupId>
+                    <artifactId>tools-maven-plugin</artifactId>
+                    <extensions>true</extensions>
+                  </plugin>
+
+                    <!--
+                     FIXME: Need to reset the default values here since out parent sets up
wars
+                     for use with jspc.  Remove once parent pom has been fixed.
+                     -->
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-war-plugin</artifactId>
+                        <configuration>
+                            <webXml>${pom.basedir}/src/main/webapp/WEB-INF/web.xml</webXml>
+                        </configuration>
+                    </plugin>
+
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <configuration>
+                            <suiteXmlFiles>
+                                <suiteXmlFile>${project.build.directory}/test-classes/testng.xml</suiteXmlFile>
+                            </suiteXmlFiles>
+                        </configuration>
+                    </plugin>
+                    
+                    <plugin>
+                        <groupId>org.apache.geronimo.plugins</groupId>
+                        <artifactId>geronimo-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>deploy-wars</id>
+                                <phase>pre-integration-test</phase>
+                                <goals>
+                                    <goal>deploy-module</goal>
+                                </goals>
+                                <configuration>
+                                  <moduleArchive>${project.build.directory}/test-2.5-servlets-${version}.war</moduleArchive>
+                                </configuration>
+                            </execution>
+                            
+                            <execution>
+                                <id>undeploy-war-as-moduleId</id>
+                                <phase>post-integration-test</phase>
+                                <goals>
+                                    <goal>undeploy-module</goal>
+                                </goals>
+                                <configuration>
+                                    <moduleId>Samples/SampleServlet/1.1/car</moduleId>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
Fri Dec  8 11:18:58 2006
@@ -0,0 +1,57 @@
+package com.test.servlet;
+
+import java.io.*;
+
+import javax.servlet.ServletConfig;
+import javax.servlet.ServletException;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * Servlet implementation class for Servlet: SampleServlet
+ *
+ * @web.servlet
+ *   name="SampleServlet"
+ *   display-name="SampleServlet"
+ *
+ * @web.servlet-mapping
+ *   url-pattern="/SampleServlet"
+ *
+ */
+ public class  SampleServlet extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet
{
+    /* (non-Java-doc)
+	 * @see javax.servlet.http.HttpServlet#HttpServlet()
+	 */
+	public  SampleServlet() {
+		super();
+
+	}
+
+	/* (non-Java-doc)
+	 * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
response)
+	 */
+	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
+		// TODO Auto-generated method stub
+	   doPost(request,response);
+	}
+
+	/* (non-Java-doc)
+	 * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse
response)
+	 */
+	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException,
IOException {
+		// TODO Auto-generated method stub
+
+		PrintWriter out = response.getWriter();
+		out.println("<html><head><title>Sample application with Servlets 2.5</title></head></html>");
+		out.println("<body>");
+		out.println("<font align=Center face=\"Garamond\"> Welcome to Servlets 2.5 samples..!!!</font>");
+		out.println("</body></html>");
+
+	}
+	
+	public void init(ServletConfig config)
+	{
+		System.out.println("Initializing servlet");
+	}
+	
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/java/com/test/servlet/SampleServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
Fri Dec  8 11:18:58 2006
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
+  <dep:environment>
+    <dep:moduleId>
+      <dep:groupId>Samples</dep:groupId>
+      <dep:artifactId>SampleServlet</dep:artifactId>
+      <dep:version>1.1</dep:version>
+      <dep:type>car</dep:type>
+    </dep:moduleId>
+  </dep:environment>
+  <context-root>/SampleServlet</context-root>
+</web-app>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
Fri Dec  8 11:18:58 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5"
+	metadata-complete="true">
+	<display-name>SampleServlet</display-name>
+	<servlet>
+		<description></description>
+		<display-name>SampleServlet</display-name>
+		<servlet-name>SampleServlet</servlet-name>
+		<servlet-class>com.test.servlet.SampleServlet</servlet-class>
+	</servlet>
+	<servlet-mapping>
+		<servlet-name>SampleServlet</servlet-name>
+		<url-pattern>/</url-pattern>
+		<url-pattern>/*</url-pattern>
+	</servlet-mapping>
+	<welcome-file-list>
+		<welcome-file>index.html</welcome-file>
+		<welcome-file>index.htm</welcome-file>
+		<welcome-file>index.jsp</welcome-file>
+	</welcome-file-list>
+</web-app>

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
Fri Dec  8 11:18:58 2006
@@ -0,0 +1,35 @@
+/**
+ *  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.
+ */
+
+package org.apache.geronimo.testsuite.servlets;
+
+
+import org.apache.geronimo.testsupport.SeleniumTestSupport;
+import org.testng.annotations.Test;
+
+public class TestServlets extends SeleniumTestSupport
+{
+    @Test
+    public void testIndexContent() throws Exception {
+        selenium.open("/SampleServlet");
+        selenium.waitForPageToLoad("30000");
+        assertEquals("Sample application with Servlets 2.5", selenium.getTitle());
+        assertEquals("Welcome to Servlets 2.5 samples..!!!", selenium.getText("xpath=/html/body"));
+    }
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/java/org/apache/geronimo/testsuite/servlets/TestServlets.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml?view=auto&rev=484701
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
(added)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
Fri Dec  8 11:18:58 2006
@@ -0,0 +1,31 @@
+<?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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+
+<suite name="Suite1" verbose="5">
+    <test name="deployment-testsuite.servlets">
+        <packages>
+            <package name="org.apache.geronimo.testsuite.servlets"/>
+        </packages>
+    </test>
+</suite>

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/web-testsuite/test-2.5-servlets/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



Mime
View raw message