|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |
WEB-INF.cftags.componentorg.cfcunit.Object
org.cfcunit.framework.Test
org.cfcunit.framework.Assert
org.cfcunit.framework.TestCase
coldbox.system.extras.testing.baseTest
public class baseTest
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.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 |
---|
private void abortit()
private void announceInterception(string state, [struct interceptData='[runtime expression]'])
state
- The interception state to executeinterceptData
- A data structure used to pass intercepted information.private void dumpit(any var, [boolean isAbort='false'])
var
isAbort
- Abort alsoprivate any execute(string eventhandler, [boolean private='false'])
eventhandler
- The event to executeprivate
- Call a private event or notprivate string getAppMapping()
private string getConfigMapping()
private any getInterceptor(string interceptorClass)
interceptorClass
- The qualified class of the itnerceptor to retrieveprivate any getModel(string name, [boolean useSetterInjection='false'], [string onDICompleteUDF='onDIComplete'], [boolean debugMode='false'])
name
- The name of the model to retrieveuseSetterInjection
- 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 onDICompletedebugMode
- Debugging Mode or notprivate any getRequestContext()
private any getcontroller()
private void rethrowit(any throwObject)
throwObject
- The cfcatch objectprivate void setAppMapping(string AppMapping)
AppMapping
private void setConfigMapping(string ConfigMapping)
ConfigMapping
public void setup()
private void setupRequest()
public void tearDown()
tearDown
in class
org.cfcunit.framework.TestCase
|
ColdBox Platform Version 2.6.3 | ||||
FRAMES |