j2eeunit.server
Class CallerHelper

java.lang.Object
  |
  +--j2eeunit.server.CallerHelper

public class CallerHelper
extends java.lang.Object

Helper class to call the setUp() and tearDown() methods of the class to test on the server side.

Version:
0.9

Constructor Summary
CallerHelper()
           
 
Method Summary
static void callSetUpMethod(ServletTestCase theTestCase)
          Call the setUp method if it exists.
static void callTearDownMethod(ServletTestCase theTestCase)
          Call the tearDown method if it exists.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallerHelper

public CallerHelper()
Method Detail

callSetUpMethod

public static void callSetUpMethod(ServletTestCase theTestCase)
                            throws java.lang.Throwable
Call the setUp method if it exists. The setUp() method is called for each test case.
Parameters:
theTestCase - the instance of the test case from which to call the setUp() method.

callTearDownMethod

public static void callTearDownMethod(ServletTestCase theTestCase)
                               throws java.lang.Throwable
Call the tearDown method if it exists. The tearDown() method is called for each test case.
Parameters:
theTestCase - the instance of the test case from which to call the tearDown() method.


Copyright © 2000-2001 Vincent Massol.