org.apache.cactus.server
class AbstractTestCaller

java.lang.Object
  |
  +--org.apache.cactus.server.AbstractTestCaller
Direct Known Subclasses:
ServletTestCaller

public abstract class AbstractTestCaller
extends java.lang.Object

Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method. This class provides a common abstraction for all test web requests.

Version:
$Id: AbstractTestCaller.java,v 1.7 2002/04/21 14:37:08 vmassol Exp $
Author:
Vincent Massol , Nicholas Lesiecki

Constructor Summary
AbstractTestCaller(WebImplicitObjects theObjects)
           
 
Method Summary
 void doGetResults()
          Return the last test results in the HTTP response.
 void doRunTest()
          Run the connection test between client and server.
 void doTest()
          Calls a test method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTestCaller

public AbstractTestCaller(WebImplicitObjects theObjects)
Parameters:
theObjects - the implicit objects coming from the redirector
Method Detail

doGetResults

public void doGetResults()
                  throws javax.servlet.ServletException
Return the last test results in the HTTP response.
Throws:
ServletException - ServletException if an unexpected error occurred

doRunTest

public void doRunTest()
               throws javax.servlet.ServletException
Run the connection test between client and server. This is just to ensure that configuration is set up correctly.
Throws:
ServletException - ServletException if an unexpected error occurred

doTest

public void doTest()
            throws javax.servlet.ServletException
Calls a test method. The parameters needed to call this method are found in the HTTP request. Save the results in the application scope so that the Get Test Result service can find them.
Throws:
ServletException - ServletException if an unexpected error occurred


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.