org.jete.cases
Class ActionTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.jete.cases.BaseActionTestCase
              extended byorg.jete.cases.ActionTestCase
All Implemented Interfaces:
junit.framework.Test

public class ActionTestCase
extends BaseActionTestCase

This class needs to retrieve the application context file as specified by a setter (or the constructor) to load the actions. The actions within a file will then be processed as part of the single test method.

Each test cases may have several validators. If this is the case, retrieve them from the validator map (with the test cases bean name as the key) and run the validator, asserting the result.

This class represents a single test, and cannot be broken down to sub tests.

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

Constructor Summary
ActionTestCase()
           
 
Method Summary
 java.util.List getTestActions()
           
protected  void runTest()
          Override the runTest method, which simply looks at the junit name and invokes that name as the method.
 void setTestActions(java.util.List testActions)
           
 
Methods inherited from class org.jete.cases.BaseActionTestCase
getSetupActions, getTearDownActions, runActions, setSetupActions, setTearDownActions, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, 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

ActionTestCase

public ActionTestCase()
Method Detail

runTest

protected void runTest()
                throws java.lang.Throwable
Override the runTest method, which simply looks at the junit name and invokes that name as the method. Since we know the method to invoke, and it's cleaner to call it straight away, just invoke the method directly.

Throws:
java.lang.Throwable

getTestActions

public java.util.List getTestActions()

setTestActions

public void setTestActions(java.util.List testActions)