|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |
WEB-INF.cftags.componentcoldbox.system.web.flash.AbstractFlashScope
coldbox.system.web.flash.MockFlash
public class MockFlash
A ColdBox unit testing flash scope
Constructor Summary | |
---|---|
init(any<Controller> controller, [any<struct> defaults='[runtime expression]'])
Constructor |
Method Summary | |
---|---|
boolean |
flashExists()
Checks if the flash storage exists and IT HAS DATA to inflate |
struct |
getFlash()
Get the flash storage structure to inflate it |
any |
getmockFlash()
Get the mock flash map |
any |
removeFlash()
Remove the entire flash storage |
any |
saveFlash()
Save the flash storage in preparing to go to the next request |
void |
setmockFlash(any mockFlash)
Override the mock flash map |
Methods inherited from class coldbox.system.web.flash.AbstractFlashScope |
---|
clear, clearFlash, discard, exists, get, getController, getDefaults, getKeys, getProperties, getProperty, getScope, getUtil, inflateFlash, isEmpty, keep, persistRC, propertyExists, put, putAll, remove, setProperties, setProperty, size, statusMarks
|
Methods inherited from class WEB-INF.cftags.component |
---|
|
Constructor Detail |
---|
public init(any<Controller> controller, [any<struct> defaults='[runtime expression]'])
controller
- The ColdBox Controllerdefaults
- Default flash data packet for the flash RAM object=[scope,properties,inflateToRC,inflateToPRC,autoPurge,autoSave]Method Detail |
---|
public boolean flashExists()
flashExists
in class
AbstractFlashScope
public struct getFlash()
getFlash
in class
AbstractFlashScope
public any getmockFlash()
public any removeFlash()
removeFlash
in class
AbstractFlashScope
public any saveFlash()
saveFlash
in class
AbstractFlashScope
public void setmockFlash(any mockFlash)
mockFlash
|
ColdBox Platform Version 3.7.0 | ||||
FRAMES |