org.apache.cactus.internal.server
Class AbstractEJBTestCaller

java.lang.Object
  extended by org.apache.cactus.internal.server.AbstractEJBTestCaller
Direct Known Subclasses:
EJBTestCaller

public abstract class AbstractEJBTestCaller
extends java.lang.Object

Prototype of EJBRedirector for Cactus.

Author:
Siddhartha P. Chandurkar (siddhartha@visioncodified.com)

Field Summary
protected  EJBImplicitObjects objects
          The ejb implicitObjects instance.
 
Constructor Summary
AbstractEJBTestCaller(EJBImplicitObjects theObjects)
          A constructor for the class.
 
Method Summary
 void doTest()
          The "main" method of the test-case.
protected  java.lang.Class getTestClassClass(java.lang.String theClassName)
           
protected  AbstractCactusTestCase getTestClassInstance(java.lang.String theClassName, java.lang.String theTestCaseName)
          A method to return an instance of the test-class.
protected  java.lang.String getTestClassName()
          Getter method to return the name of the class being tested.
protected  java.lang.String getTestMethodName()
          Getter method to return the name of the test-method being executed.
protected abstract  void setTestCaseFields(AbstractCactusTestCase theTestCase)
          Setter method to set the test-case fields.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objects

protected EJBImplicitObjects objects
The ejb implicitObjects instance.

Constructor Detail

AbstractEJBTestCaller

public AbstractEJBTestCaller(EJBImplicitObjects theObjects)
A constructor for the class.

Parameters:
theObjects -
Method Detail

setTestCaseFields

protected abstract void setTestCaseFields(AbstractCactusTestCase theTestCase)
                                   throws java.lang.Exception
Setter method to set the test-case fields.

Parameters:
theTestCase -
Throws:
java.lang.Exception - in case an error occurs.

doTest

public void doTest()
            throws java.lang.Exception
The "main" method of the test-case.

Throws:
java.lang.Exception - in case an error occurs

getTestClassName

protected java.lang.String getTestClassName()
Getter method to return the name of the class being tested.

Returns:

getTestMethodName

protected java.lang.String getTestMethodName()
                                      throws java.lang.Exception
Getter method to return the name of the test-method being executed.

Returns:
Throws:
java.lang.Exception - in case an error occurs

getTestClassInstance

protected AbstractCactusTestCase getTestClassInstance(java.lang.String theClassName,
                                                      java.lang.String theTestCaseName)
                                               throws java.lang.Exception
A method to return an instance of the test-class.

Parameters:
theClassName -
theTestCaseName -
Returns:
Throws:
java.lang.Exception - in case an error occurs

getTestClassClass

protected java.lang.Class getTestClassClass(java.lang.String theClassName)
                                     throws java.lang.Exception
Parameters:
theClassName - the name of the test class
Returns:
the class object the test class to call
Throws:
java.lang.Exception - in case an error occurs


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