org.apache.cactus.internal.server
Class FilterTestCaller

java.lang.Object
  extended by org.apache.cactus.internal.server.AbstractWebTestCaller
      extended by org.apache.cactus.internal.server.FilterTestCaller

public class FilterTestCaller
extends AbstractWebTestCaller

Responsible for instanciating the TestCase class on the server side, set up the implicit objects and call the test method.

Version:
$Id: FilterTestCaller.java 292560 2005-09-29 21:48:10Z kenney $

Field Summary
 
Fields inherited from class org.apache.cactus.internal.server.AbstractWebTestCaller
TEST_RESULTS, webImplicitObjects
 
Constructor Summary
FilterTestCaller(FilterImplicitObjects theObjects)
           
 
Method Summary
protected  java.io.Writer getResponseWriter()
          
protected  void setTestCaseFields(junit.framework.TestCase theTestInstance)
          Sets the implicit object in the test case class.
 
Methods inherited from class org.apache.cactus.internal.server.AbstractWebTestCaller
doCreateSession, doGetResults, doGetVersion, doRunTest, doTest, getTestClassClass, getTestClassInstance, getTestClassName, getTestMethodName, getWrappedTestClassName, isAutoSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterTestCaller

public FilterTestCaller(FilterImplicitObjects theObjects)
Parameters:
theObjects - the implicit objects coming from the redirector
Method Detail

setTestCaseFields

protected void setTestCaseFields(junit.framework.TestCase theTestInstance)
                          throws java.lang.Exception
Sets the implicit object in the test case class.

Specified by:
setTestCaseFields in class AbstractWebTestCaller
Parameters:
theTestInstance - the instance of the test case class on which the class variable (implicit objects) should be set
Throws:
java.lang.Exception - if an errors occurs when setting the implicit objects
See Also:
AbstractWebTestCaller.setTestCaseFields(TestCase)

getResponseWriter

protected java.io.Writer getResponseWriter()
                                    throws java.io.IOException

Specified by:
getResponseWriter in class AbstractWebTestCaller
Returns:
a Writer object that will be used to return the test result to the client side.
Throws:
java.io.IOException - if an error occurs when retrieving the writer
See Also:
AbstractWebTestCaller.getResponseWriter()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.