MXUnit 2.1.3 (Generated: 09/27/2012)

mxunit.framework
Class TestDecorator

WEB-INF.cftags.component
        extended by mxunit.framework.TestDecorator
Direct Known Subclasses:
TestDecorator , TestDecorator , TestDecorator , TestDecorator

public class TestDecorator
extends WEB-INF.cftags.component

Abstract decorator for extending when you want to have decorators for unit tests


Method Summary
remote any TestCase(any aTestCase)
 void afterTests()
 void beforeTests()
 any clearClassVariables()
 void clearDebug()
 any createRequestScopeDebug()
 void debug(any var)
 void disableAfterTests()
 void disableBeforeTests()
 void enableAfterTests()
 void enableBeforeTests()
 any getActual()
 Any getAnnotation(Any methodName, Any annotationName, [Any defaultValue])
 any getBaseTarget()
          Get the absolute bottom target - the actual test case
 array getDebug()
 any getExpected()
 any getExpectedExceptionMessage()
 any getExpectedExceptionType()
 array getRunnableMethods()
 any getTarget()
          get the current Target
 any getVariablesScope()
          Door into another component's variables scope
 any initDebug()
 string invokeTestMethod(string methodName, [struct args])
 any onMissingMethod(string missingMethodName, [any missingMethodArguments])
          Delegates any missing method calls down the decorator chain, ending at the base target
 any setExpectedExceptionMessage(string expectedExceptionMessage)
 any setExpectedExceptionType(string expectedExceptionType)
 any setMockingFramework(Any name)
 void setTarget(any target)
 void setUp()
 void tearDown()
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

TestCase

remote any TestCase(any aTestCase)

Parameters:
aTestCase

afterTests

public void afterTests()


beforeTests

public void beforeTests()


clearClassVariables

public any clearClassVariables()


clearDebug

public void clearDebug()


createRequestScopeDebug

public any createRequestScopeDebug()


debug

public void debug(any var)

Parameters:
var

disableAfterTests

public void disableAfterTests()


disableBeforeTests

public void disableBeforeTests()


enableAfterTests

public void enableAfterTests()


enableBeforeTests

public void enableBeforeTests()


getActual

public any getActual()


getAnnotation

public Any getAnnotation(Any methodName, Any annotationName, [Any defaultValue])

Parameters:
methodName
annotationName
defaultValue

getBaseTarget

public any getBaseTarget()
Get the absolute bottom target - the actual test case


getDebug

public array getDebug()


getExpected

public any getExpected()


getExpectedExceptionMessage

public any getExpectedExceptionMessage()


getExpectedExceptionType

public any getExpectedExceptionType()


getRunnableMethods

public array getRunnableMethods()


getTarget

public any getTarget()
get the current Target. May actually be another decorator.


getVariablesScope

public any getVariablesScope()
Door into another component's variables scope


initDebug

public any initDebug()


invokeTestMethod

public string invokeTestMethod(string methodName, [struct args])

Parameters:
methodName - the name of the method to invoke
args - Optional set of arguments

onMissingMethod

public any onMissingMethod(string missingMethodName, [any missingMethodArguments])
Delegates any missing method calls down the decorator chain, ending at the base target. If a function is still not found, a method not found exception will result

Parameters:
missingMethodName
missingMethodArguments

setExpectedExceptionMessage

public any setExpectedExceptionMessage(string expectedExceptionMessage)

Parameters:
expectedExceptionMessage

setExpectedExceptionType

public any setExpectedExceptionType(string expectedExceptionType)

Parameters:
expectedExceptionType

setMockingFramework

public any setMockingFramework(Any name)

Parameters:
name

setTarget

public void setTarget(any target)

Parameters:
target

setUp

public void setUp()


tearDown

public void tearDown()


MXUnit 2.1.3 (Generated: 09/27/2012)