org.apache.cactus
class AbstractTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.cactus.AbstractTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
ServletTestCase

public abstract class AbstractTestCase
extends junit.framework.TestCase

Abstract class that specific test cases (ServletTestCase, FilterTestCase, ...) must extend. Provides generally useful methods fro writing a specific test case.

Version:
$Id: AbstractTestCase.java,v 1.3 2002/04/16 21:16:13 vmassol Exp $
Author:
Vincent Massol

Field Summary
static String LOG_CLIENT_CONFIG
          Name of properties file to initialize logging subsystem
          
 
Constructor Summary
AbstractTestCase(String theName)
          Constructs a JUnit test case with the given name.
 
Method Summary
 void runBare()
          Runs the bare test sequence.
 void runBareServerTest()
          Run the test that was specified in the constructor on the server side, calling setUp() and tearDown().
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG_CLIENT_CONFIG

public static final String LOG_CLIENT_CONFIG
Name of properties file to initialize logging subsystem
Constructor Detail

AbstractTestCase

public AbstractTestCase(String theName)
Constructs a JUnit test case with the given name.
Parameters:
theName - the name of the test case
Method Detail

runBare

public void runBare()
             throws java.lang.Throwable
Runs the bare test sequence. This method is overridden from the JUnit TestCase class in order to prevent the latter to call the setUp() and tearDown() methods which, in our case, need to be ran in the servlet engine by the servlet redirector class.
Throws:
Throwable - Throwable if any exception is thrown during the test. Any exception will be displayed by the JUnit Test Runner

runBareServerTest

public void runBareServerTest()
                       throws java.lang.Throwable
Run the test that was specified in the constructor on the server side, calling setUp() and tearDown().
Throws:
Throwable - Throwable any error that occurred when calling the test method for the current test case, on the server side.


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