ColdBox Platform Version 2.6.3

coldbox.system.extras.testing
Class baseTest

WEB-INF.cftags.component
        extended by org.cfcunit.Object
            extended by org.cfcunit.framework.Test
                extended by org.cfcunit.framework.Assert
                    extended by org.cfcunit.framework.TestCase
                        extended by coldbox.system.extras.testing.baseTest

public class baseTest
extends org.cfcunit.framework.TestCase

Base Unit Testing class for cfcunit


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 org.cfcunit.framework.TestCase
countTestCases, createResult, getName, init, run, runBare, runTest, setName, setWarningMessage, toStringValue, warning
 
Methods inherited from class org.cfcunit.framework.Assert
assertArrayContainsNumber, assertArrayContainsString, assertClass, assertComplexValue, assertComponent, assertContainsString, assertEqualsArray, assertEqualsBoolean, assertEqualsDate, assertEqualsNumber, assertEqualsQuery, assertEqualsString, assertEqualsStruct, assertFalse, assertNotNull, assertNotNullComponent, assertNotRegexMatch, assertNotSameComponent, assertNotSameStruct, assertNull, assertNullComponent, assertObject, assertRegexMatch, assertSameComponent, assertSameStruct, assertSimpleValue, assertTrue, fail, failNotEquals, failNotSame, failSame, format, isCFC
 
Methods inherited from class org.cfcunit.framework.Test
 
Methods inherited from class org.cfcunit.Object
equalsObject, getCFCMetadata, getHashCode, getStackTrace, isCFCType, isNull, newJavaObject, newObject, objectID
 
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 org.cfcunit.framework.TestCase

ColdBox Platform Version 2.6.3