ColdBox Platform Version 2.6.3

coldbox.system.extras.testing
Class baseMXUnitTest

WEB-INF.cftags.component
        extended by mxunit.framework.Assert
            extended by mxunit.framework.TestCase
                extended by coldbox.system.extras.testing.baseMXUnitTest

public class baseMXUnitTest
extends mxunit.framework.TestCase

A base unit test case for MXUnit


Method Summary
private void abortit()
          Facade for cfabort
private void announceInterception(string state, [struct interceptData='[runtime expression]'])
          Announce an interception to the system.
private void dumpit(any var, [boolean isAbort='false'])
          Facade for cfmx dump
private any execute(string eventhandler, [boolean private='false'])
          Executes a framework lifecycle
private string getAppMapping()
          Get the AppMapping
private string getConfigMapping()
          Get the ConfigMapping
private any getInterceptor(string interceptorClass)
          Get an interceptor
private any getModel(string name, [boolean useSetterInjection='false'], [string onDICompleteUDF='onDIComplete'], [boolean debugMode='false'])
          Create or retrieve model objects by convention
private any getRequestContext()
          Get the event object
private any getcontroller()
          Get a reference to the ColdBox controller
private void rethrowit(any throwObject)
          Rethrow facade
private void setAppMapping(string AppMapping)
          Set the AppMapping
private void setConfigMapping(string ConfigMapping)
          Set the ConfigMapping
 void setup()
private void setupRequest()
          Setup a request with FORM/URL data
 void tearDown()
          The teardown
 
Methods inherited from class mxunit.framework.TestCase
TestCase, addTrace, clearDebug, createResult, debug, dump, getDebug, getRunnableMethods, getTrace, injectMethod, makePublic, run, runBare, runTest, runTestRemote, testIsAcceptable, toStringValue
 
Methods inherited from class mxunit.framework.Assert
addAssertDecorator, addAssertDecorators, assertEquals, assertFalse, assertNotEquals, assertNotSame, assertSame, assertTrue, fail, failEquals, failNotEquals, getHashCode, getStringValue, getTestStyle, init, normalizeArguments, setTestStyle, throwWrapper
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

abortit

private void abortit()
Facade for cfabort


announceInterception

private void announceInterception(string state, [struct interceptData='[runtime expression]'])
Announce an interception to the system.

Parameters:
state - The interception state to execute
interceptData - A data structure used to pass intercepted information.

dumpit

private void dumpit(any var, [boolean isAbort='false'])
Facade for cfmx dump

Parameters:
var
isAbort - Abort also

execute

private any execute(string eventhandler, [boolean private='false'])
Executes a framework lifecycle

Parameters:
eventhandler - The event to execute
private - Call a private event or not

getAppMapping

private string getAppMapping()
Get the AppMapping


getConfigMapping

private string getConfigMapping()
Get the ConfigMapping


getInterceptor

private any getInterceptor(string interceptorClass)
Get an interceptor

Parameters:
interceptorClass - The qualified class of the itnerceptor to retrieve

getModel

private any getModel(string name, [boolean useSetterInjection='false'], [string onDICompleteUDF='onDIComplete'], [boolean debugMode='false'])
Create or retrieve model objects by convention

Parameters:
name - The name of the model to retrieve
useSetterInjection - Whether to use setter injection alongside the annotations property injection. cfproperty injection takes precedence.
onDICompleteUDF - After Dependencies are injected, this method will look for this UDF and call it if it exists. The default value is onDIComplete
debugMode - Debugging Mode or not

getRequestContext

private any getRequestContext()
Get the event object


getcontroller

private any getcontroller()
Get a reference to the ColdBox controller


rethrowit

private void rethrowit(any throwObject)
Rethrow facade

Parameters:
throwObject - The cfcatch object

setAppMapping

private void setAppMapping(string AppMapping)
Set the AppMapping

Parameters:
AppMapping

setConfigMapping

private void setConfigMapping(string ConfigMapping)
Set the ConfigMapping

Parameters:
ConfigMapping

setup

public void setup()


setupRequest

private void setupRequest()
Setup a request with FORM/URL data


tearDown

public void tearDown()
The teardown

Overrides:
tearDown in class mxunit.framework.TestCase

ColdBox Platform Version 2.6.3