org.jete.cases
Class BaseActionTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jete.cases.BaseActionTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
ActionTestCase, MultiTestCase, SystemTest

public abstract class BaseActionTestCase
extends junit.framework.TestCase

Wrap the setup and teardown with defined actions, so that any testcase may have a TestAction that is loaded via the context file run as setup and teardown functionality.

This utilizes JUnit's setup and teardown functionality.

Version:
$Id: BaseActionTestCase.html,v 1.3 2006/03/12 02:46:52 tdeast Exp $

Constructor Summary
BaseActionTestCase()
           
 
Method Summary
 java.util.List getSetupActions()
           
 java.util.List getTearDownActions()
           
protected  void runActions(java.util.List testActions)
          Run the specified test actions, for setup, teardown, and child classes
 void setSetupActions(java.util.List setupActions)
           
 void setTearDownActions(java.util.List tearDownActions)
           
protected  void setUp()
          Sets up the fixture, for example, open a network connection.
protected  void tearDown()
          Tears down the fixture, for example, close a network connection.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseActionTestCase

public BaseActionTestCase()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Throws:
java.lang.Exception

runActions

protected void runActions(java.util.List testActions)
Run the specified test actions, for setup, teardown, and child classes

Parameters:
testActions -

getSetupActions

public java.util.List getSetupActions()

setSetupActions

public void setSetupActions(java.util.List setupActions)

getTearDownActions

public java.util.List getTearDownActions()

setTearDownActions

public void setTearDownActions(java.util.List tearDownActions)