|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
coldbox.system.web.Controller
coldbox.system.testing.mock.web.MockController
public class MockController
This is the ColdBox Unit Test Front Controller.
| Constructor Summary | |
|---|---|
init(string appRootPath)
Constructor |
|
| Method Summary | |
|---|---|
void |
relocate(string url, [boolean addtoken='false'], [boolean postProcessExempt='false'])
Facade for cflocation |
void |
setNextEvent([string event='[runtime expression]'], [string queryString=''], [boolean addToken='false'], [string persist=''], [struct persistStruct='[runtime expression]'], [boolean ssl='false'], [string baseURL=''], [boolean postProcessExempt='false'], [string URL=''], [string URI=''], [numeric statusCode='0'])
I Set the next event to run and relocate the browser to that event |
void |
setNextRoute(string route, [string persist=''], [struct persistStruct='[runtime expression]'], [boolean addToken='false'], [boolean ssl='false'], [string queryString=''], [boolean postProcessExempt='false'])
I Set the next ses route to relocate to |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string appRootPath)
appRootPath - The app Root Path| Method Detail |
|---|
public void relocate(string url, [boolean addtoken='false'], [boolean postProcessExempt='false'])
urladdtokenpostProcessExempt - Do not fire the postProcess interceptorsPublic void setNextEvent([string event='[runtime expression]'], [string queryString=''], [boolean addToken='false'], [string persist=''], [struct persistStruct='[runtime expression]'], [boolean ssl='false'], [string baseURL=''], [boolean postProcessExempt='false'], [string URL=''], [string URI=''], [numeric statusCode='0'])
setNextEvent
in class
Controller
event - The name of the event to run.queryString - The query string to append, if needed.addToken - Wether to add the tokens or not. Default is falsepersist - What request collection keys to persist in the relocationpersistStruct - A structure key-value pairs to persist.ssl - Whether to relocate in SSL or not, only used when in SES mode.baseURL - Use this baseURL instead of the index.cfm that is used by default. You can use this for ssl or any full base url you would like to use. Ex: https://mysite.com/index.cfmpostProcessExempt - Do not fire the postProcess interceptorsURL - The full URL you would like to relocate to instead of an event: ex: URL='http://www.google.com'URI - The relative URI you would like to relocate to instead of an event: ex: URI='/mypath/awesome/here'statusCode - The status code to use in the relocationPublic void setNextRoute(string route, [string persist=''], [struct persistStruct='[runtime expression]'], [boolean addToken='false'], [boolean ssl='false'], [string queryString=''], [boolean postProcessExempt='false'])
route - The route to relocate to, do not prepend the baseURL or /.persist - What request collection keys to persist in the relocationpersistStruct - A structure key-value pairs to persist.addToken - Wether to add the tokens or not. Default is falsessl - Whether to relocate in SSL or notqueryString - The query string to append, if needed.postProcessExempt - Do not fire the postProcess interceptors
|
ColdBox Platform Version 2.6.4 | ||||
| FRAMES | |||||