| org.hamletsoft.enhydra.cactus.business.EnhydraAppTestCase
All known Subclasses: org.hamletsoft.enhydra.cactus.business.sample.SampleEnhydraRedirectionTestCase, org.hamletsoft.enhydra.cactus.business.sample.SampleEnhydraAppTestCase,
EnhydraAppTestCase | public class EnhydraAppTestCase extends AbstractWebTestCase (Code) | | Test classes that need access to valid EnhydraApp implicit objects (such as the
the HTTP request, the HTTP response, the servlet config, ...) must subclass
this class.
author: Ryuji "The Hamlet" Hattori version: $Id: EnhydraAppTestCase.java,v 1.1 2006-09-11 12:30:51 sinisa Exp $ |
Field Summary | |
public Application | application Valid Application object that you can access from
the testXXX() , setUp and
tearDown() methods. | public HttpPresentationComms | comms Valid HttpPresentationComms object that you can access from
the testXXX() , setUp and
tearDown() methods. | public HttpPresentationRequest | request Valid HttpPresentationRequest object that you can access from
the testXXX() , setUp and
tearDown() methods. | public HttpPresentationResponse | response Valid HttpPresentationResponse object that you can access from
the testXXX() , setUp and
tearDown() methods. |
application | public Application application(Code) | | Valid Application object that you can access from
the testXXX() , setUp and
tearDown() methods. If you try to access it from either the
beginXXX() or endXXX() methods it will
have the null value.
|
comms | public HttpPresentationComms comms(Code) | | Valid HttpPresentationComms object that you can access from
the testXXX() , setUp and
tearDown() methods. If you try to access it from either the
beginXXX() or endXXX() methods it will
have the null value.
|
request | public HttpPresentationRequest request(Code) | | Valid HttpPresentationRequest object that you can access from
the testXXX() , setUp and
tearDown() methods. If you try to access it from either the
beginXXX() or endXXX() methods it will
have the null value.
|
response | public HttpPresentationResponse response(Code) | | Valid HttpPresentationResponse object that you can access from
the testXXX() , setUp and
tearDown() methods. If you try to access it from either the
beginXXX() or endXXX() methods it will
have the null value.
|
EnhydraAppTestCase | public EnhydraAppTestCase(String theName)(Code) | | Constructs a JUnit test case with the given name.
Parameters: theName - the name of the test case |
getRedirectParameters | protected Hashtable getRedirectParameters(String url)(Code) | | getting Parameter table for the url of client page redirection.
Parameters: url - URL of Page Redirection. HTTP parameter table for the URL of Page Redirection. (Class of the Hashtable's value is not String but String[]) if the url has no parameter, this returns null. |
hookForClientPageRedirect | protected void hookForClientPageRedirect(String url, Hashtable ht)(Code) | | Hook method for all Test on server side for client page redirection.
Parameters: url - URL of Page Redirection. Parameters: ht - HTTP parameter table for the URL of Page Redirection. (Class of the Hashtable's value is not String but String[]) |
runServerTest | protected void runServerTest() throws Throwable(Code) | | Overwrite Methods. because of need to handle ClinetSideRedirection
Run the test that was specified in the constructor on the server side,
|
runTest | protected void runTest() throws Throwable(Code) | | Runs a test case. This method is overriden from the JUnit
TestCase class in order to seamlessly call the
Cactus redirection servlet.
|
|
|