box.system.web.flash.concurrent.Callable interface"> Callable
ColdBox Platform Version 2.6.4

coldbox.system.web.flash
Class MockFlash

WEB-INF.cftags.component
        extended by coldbox.system.web.flash.AbstractFlashScope
            extended by coldbox.system.web.flash.MockFlash

public class MockFlash
extends AbstractFlashScope

A ColdBox unit testing flash scope


Constructor Summary
init(Controller controller)
          Constructor
 
Method Summary
 void clearFlash()
          Clear the flash storage
 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
 void 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, discard, exists, get, getController, getKeys, getScope, getUtil, inflateFlash, isEmpty, keep, persistRC, put, putAll, remove, size, statusMarks
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(Controller controller)
Constructor

Parameters:
controller - The ColdBox Controller
Method Detail

clearFlash

public void clearFlash()
Clear the flash storage

Overrides:
clearFlash in class AbstractFlashScope

flashExists

public boolean flashExists()
Checks if the flash storage exists and IT HAS DATA to inflate.

Overrides:
flashExists in class AbstractFlashScope

getFlash

public struct getFlash()
Get the flash storage structure to inflate it.

Overrides:
getFlash in class AbstractFlashScope

getmockFlash

public any getmockFlash()
Get the mock flash map


saveFlash

public void saveFlash()
Save the flash storage in preparing to go to the next request

Overrides:
saveFlash in class AbstractFlashScope

setmockFlash

public void setmockFlash(any mockFlash)
Override the mock flash map

Parameters:
mockFlash

ColdBox Platform Version 2.6.4