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.2 2001/09/14 20:16:55 pier Exp $
Author:
Vincent Massol

Constructor Summary
AbstractTestCaller(WebImplicitObjects theObjects)
           
 
Method Summary
 void doGetResults()
          Return the last test results as a serialized object in the HTTP response.
 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

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:
javax.servlet.ServletException - if an unexpected error occurred

doGetResults

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


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