Author: gawor Date: Tue Apr 19 21:12:34 2011 New Revision: 1095217 URL: http://svn.apache.org/viewvc?rev=1095217&view=rev Log: added a test case to test WABs with basic JSPs Added: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp (with props) Modified: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-eba/src/test/java/org/apache/geronimo/testsuite/eba/EBATest.java geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/pom.xml Modified: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-eba/src/test/java/org/apache/geronimo/testsuite/eba/EBATest.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-eba/src/test/java/org/apache/geronimo/testsuite/eba/EBATest.java?rev=1095217&r1=1095216&r2=1095217&view=diff ============================================================================== --- geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-eba/src/test/java/org/apache/geronimo/testsuite/eba/EBATest.java (original) +++ geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-eba/src/test/java/org/apache/geronimo/testsuite/eba/EBATest.java Tue Apr 19 21:12:34 2011 @@ -31,11 +31,19 @@ public class EBATest extends TestSupport @Test public void testServlet() throws Exception { - checkReply("/SampleServlet"); + String reply = getReply("/SampleServlet"); + assertTrue("WAB Servlet", + reply.contains("Hello Web Application Bundle")); } + @Test + public void testJSP() throws Exception { + String reply = getReply("/test.jsp"); + assertTrue("WAB JSP", + reply.contains("page request session application")); + } - private void checkReply(String address) + private String getReply(String address) throws Exception { String warName = System.getProperty("webAppName"); assertNotNull(warName); @@ -44,9 +52,7 @@ public class EBATest extends TestSupport * WABs are deployed asynchronously so it might take a * bit to actually invoke the servlet. */ - String reply = doGET(url, 6, 10 * 1000); - assertTrue("WAB", - reply.contains("Hello Web Application Bundle")); + return doGET(url, 6, 10 * 1000); } private String doGET(URL url, int repeat, long delay) { Modified: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/pom.xml?rev=1095217&r1=1095216&r2=1095217&view=diff ============================================================================== --- geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/pom.xml (original) +++ geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/pom.xml Tue Apr 19 21:12:34 2011 @@ -60,6 +60,13 @@ ${pom.artifactId} org.apache.geronimo.test.eba !org.apache.geronimo.test.eba + + javax.servlet.jsp.el, + javax.servlet.jsp, + javax.servlet.jsp.tagext, + javax.servlet.jsp.resources, + * + Added: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp?rev=1095217&view=auto ============================================================================== --- geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp (added) +++ geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp Tue Apr 19 21:12:34 2011 @@ -0,0 +1,28 @@ + +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" trimDirectiveWhitespaces="true" %> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> + +Hello JSP + + + + + + + + Propchange: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/server/trunk/testsuite/aries-testsuite/simple/simple-wab/src/main/resources/test.jsp ------------------------------------------------------------------------------ svn:mime-type = text/plain