You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by vm...@apache.org on 2004/04/21 22:27:39 UTC
cvs commit: jakarta-cactus/documentation/docs/xdocs/images archi.jpg archi_servlet.jpg archi_filter.jpg archi_jsp.jpg
vmassol 2004/04/21 13:27:39
Modified: documentation/docs/xdocs how_it_works.xml
documentation/docs/xdocs/original archi_filter.ppt
archi_servlet.ppt archi.ppt archi_jsp.ppt
documentation/docs/xdocs/images archi.jpg archi_servlet.jpg
archi_filter.jpg archi_jsp.jpg
Log:
Added doc for global begin()/end() methods.
Revision Changes Path
1.10 +15 -9 jakarta-cactus/documentation/docs/xdocs/how_it_works.xml
Index: how_it_works.xml
===================================================================
RCS file: /home/cvs/jakarta-cactus/documentation/docs/xdocs/how_it_works.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- how_it_works.xml 13 Mar 2004 14:40:47 -0000 1.9
+++ how_it_works.xml 21 Apr 2004 20:27:39 -0000 1.10
@@ -61,13 +61,14 @@
<ol>
<li>
The JUnit Test Runner calls a <code>YYYTestCase.runTest()</code>
- method. This method looks for a
+ method. This method first looks for a <code>begin(WebRequest)</code>
+ method and executes it if found. Note that this method is called
+ before each test. The <code>WebRequest</code> parameter passed to
+ the <code>beginXXX()</code> method is used to set the HTTP headers,
+ the HTTP parameters, ... that will be sent in step 2 to the Redirector
+ proxy. The <code>runTest()</code> method then looks for a
<code>beginXXX(WebRequest)</code> method and executes it if
- one is found. This is executed on the client side (i.e. not in a
- server engine). The <code>WebRequest</code>
- parameter passed to the <code>beginXXX()</code> method is used
- to set the HTTP headers, the HTTP parameters, ... that will be
- sent in step 2 to the Redirector proxy.
+ found.
</li>
<li>
The <code>YYYTestCase.runTest()</code> method then opens an HTTP
@@ -81,7 +82,8 @@
twice: once on the client side (by the JUnit Test Runner) and once
on the server side (by the Redirector proxy). The client side
instance is used for executing the
- <code>beginXXX()</code> and <code>endXXX()</code> methods (see
+ <code>begin()</code>, <code>beginXXX()</code>, <code>endXXX()</code>
+ and <code>end()</code> methods (see
steps 1 and 8) and the server side instance is used for executing
the <code>testXXX()</code> methods (see step 4). The Redirector
proxy does the following:
@@ -140,12 +142,16 @@
<li>
If no exception occurred, the <code>YYYTestCase.runTest()</code>
method looks for an <code>endXXX(org.apache.cactus.WebResponse)</code>
- or <code>endXXX(com.meterware.httpunit.WebResponse)</code> (this
+ or <code>endXXX(com.meterware.httpunit.WebResponse)</code> method (this
signature is used for <link href="site:howto_httpunit">HttpUnit
- integration</link>) method and executes it if found. At this stage,
+ integration</link>) and executes it if found. At this stage,
you have the opportunity to check returned HTTP headers, Cookies and
the servlet output stream in the <code>endXXX()</code> method, again
using JUnit asserts and helper utility classes provided by Cactus.
+ Then the <code>runTest()</code> methods looks for an
+ <code>end(org.apache.cactus.WebResponse)</code> or
+ <code>end(com.meterware.httpunit.WebResponse)</code> method and calls
+ it if found. This <code>end()</code> method is called after each test.
</li>
</ol>
1.2 +87 -50 jakarta-cactus/documentation/docs/xdocs/original/archi_filter.ppt
<<Binary file>>
1.2 +51 -176 jakarta-cactus/documentation/docs/xdocs/original/archi_servlet.ppt
<<Binary file>>
1.2 +46 -164 jakarta-cactus/documentation/docs/xdocs/original/archi.ppt
<<Binary file>>
1.2 +87 -50 jakarta-cactus/documentation/docs/xdocs/original/archi_jsp.ppt
<<Binary file>>
1.2 +72 -98 jakarta-cactus/documentation/docs/xdocs/images/archi.jpg
<<Binary file>>
1.2 +78 -49 jakarta-cactus/documentation/docs/xdocs/images/archi_servlet.jpg
<<Binary file>>
1.2 +61 -92 jakarta-cactus/documentation/docs/xdocs/images/archi_filter.jpg
<<Binary file>>
1.2 +63 -112 jakarta-cactus/documentation/docs/xdocs/images/archi_jsp.jpg
<<Binary file>>
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org