You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by cr...@apache.org on 2001/07/13 02:49:00 UTC
cvs commit: jakarta-tomcat-4.0/tester/web JspBeans01.jsp JspBeans02.jsp JspBeans03.jsp
craigmcc 01/07/12 17:49:00
Modified: tester/src/bin tester.xml
Added: tester/web JspBeans01.jsp JspBeans02.jsp JspBeans03.jsp
Log:
Add unit tests to verify that bean classes can be read from /WEB-INF/classes,
a JAR file in /WEB-INF/lib, and a parent class loader.
Revision Changes Path
1.57 +18 -4 jakarta-tomcat-4.0/tester/src/bin/tester.xml
Index: tester.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat-4.0/tester/src/bin/tester.xml,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -r1.56 -r1.57
--- tester.xml 2001/07/12 02:40:52 1.56
+++ tester.xml 2001/07/13 00:48:56 1.57
@@ -15,7 +15,7 @@
<taskdef name="tester" classname="org.apache.tester.TestClient"/>
- <target name="all" depends="ROOT,Authentication,CaseSensitive,Decoding,ErrorPage,FilterRequest,FilterResponse,Jndi,JspParams,Lifecycle,RequestDispatcher,Resources,ServletContext,ServletRequest,ServletResponse,HttpSession,XercesTest,SSITest,CGITest"/>
+ <target name="all" depends="ROOT,Authentication,CaseSensitive,Decoding,ErrorPage,FilterRequest,FilterResponse,Jndi,Jsp,Lifecycle,RequestDispatcher,Resources,ServletContext,ServletRequest,ServletResponse,HttpSession,XercesTest,SSITest,CGITest"/>
<target name="ROOT">
@@ -497,16 +497,30 @@
</target>
- <target name="JspParams">
+ <target name="Jsp">
+ <!-- ========== JSP Access To Bean Classes ============================ -->
+
+ <tester host="${host}" port="${port}" protocol="HTTP/1.0"
+ request="${context.path}/JspBeans01.jsp" debug="${debug}"
+ outContent="JspBeans01 PASSED"/>
+
+ <tester host="${host}" port="${port}" protocol="HTTP/1.0"
+ request="${context.path}/JspBeans02.jsp" debug="${debug}"
+ outContent="JspBeans02 PASSED"/>
+
+ <tester host="${host}" port="${port}" protocol="HTTP/1.0"
+ request="${context.path}/JspBeans03.jsp" debug="${debug}"
+ outContent="JspBeans03 PASSED"/>
+
<!-- ========== <jsp:params> not legal in <jsp:include/forward> ======= -->
<tester host="${host}" port="${port}" protocol="HTTP/1.0"
- request="${context.path}/JspParams01" debug="${debug}"
+ request="${context.path}/JspParams01.jsp" debug="${debug}"
status="500"/>
<tester host="${host}" port="${port}" protocol="HTTP/1.0"
- request="${context.path}/JspParams02" debug="${debug}"
+ request="${context.path}/JspParams02.jsp" debug="${debug}"
status="500"/>
</target>
1.1 jakarta-tomcat-4.0/tester/web/JspBeans01.jsp
Index: JspBeans01.jsp
===================================================================
<%@ page contentType="text/plain" %><jsp:useBean id="bean" class="org.apache.tester.SessionBean"/>JspBeans01 PASSED
lifecycle = <%= bean.getLifecycle() %>
stringProperty= <%= bean.getStringProperty() %>
toString = <%= bean.toString() %>
1.1 jakarta-tomcat-4.0/tester/web/JspBeans02.jsp
Index: JspBeans02.jsp
===================================================================
<%@ page contentType="text/plain" %><jsp:useBean id="bean" class="org.apache.tester.shared.SharedSessionBean"/>JspBeans02 PASSED
lifecycle = <%= bean.getLifecycle() %>
stringProperty= <%= bean.getStringProperty() %>
toString = <%= bean.toString() %>
1.1 jakarta-tomcat-4.0/tester/web/JspBeans03.jsp
Index: JspBeans03.jsp
===================================================================
<%@ page contentType="text/plain" %><jsp:useBean id="bean" class="org.apache.tester.unshared.UnsharedSessionBean"/>JspBeans03 PASSED
lifecycle = <%= bean.getLifecycle() %>
stringProperty= <%= bean.getStringProperty() %>
toString = <%= bean.toString() %>