Package | com.asfusion.mate.testing |
Class | public class MockDelegate |
Inheritance | MockDelegate flash.utils.Proxy |
Implements | flash.events.IEventDispatcher |
Property | Defined by | ||
---|---|---|---|
cache : Boolean = true | MockDelegate | ||
delay : uint = 0
Number of seconds to take to return the result or fault after making the call.
| MockDelegate | ||
mockGenerator : Class
Class to instantiate that will generate the mock result.
| MockDelegate | ||
showBusyCursor : Boolean = false
If true, a busy cursor is displayed while a service is executing.
| MockDelegate |
Property | Defined by | ||
---|---|---|---|
eventDispatcher : EventDispatcher | MockDelegate | ||
operationsDictionary : Dictionary | MockDelegate |
Method | Defined by | ||
---|---|---|---|
Constructor
| MockDelegate | ||
getOperation(name:String):AbstractOperation
| MockDelegate |
Method | Defined by | ||
---|---|---|---|
dispatchFault(event:FaultEvent):void
| MockDelegate | ||
dispatchResult(event:ResultEvent):void
| MockDelegate | ||
getMethod(name:String):MockMethod
| MockDelegate | ||
hasProperty(name:*):Boolean
| MockDelegate |
cache | property |
public var cache:Boolean = true
delay | property |
public var delay:uint = 0
Number of seconds to take to return the result or fault after making the call. This helps making the illusion that the service is taking time to respond. Default is 0 (no delay).
eventDispatcher | property |
protected var eventDispatcher:EventDispatcher
mockGenerator | property |
public var mockGenerator:Class
Class to instantiate that will generate the mock result. This attribute needs to be supplied here or in the individual MockMethod tags.
operationsDictionary | property |
protected var operationsDictionary:Dictionary
showBusyCursor | property |
public var showBusyCursor:Boolean = false
If true, a busy cursor is displayed while a service is executing.
MockDelegate | () | constructor |
public function MockDelegate()
Constructor
dispatchFault | () | method |
protected function dispatchFault(event:FaultEvent):void
Parameters
event:FaultEvent |
dispatchResult | () | method |
protected function dispatchResult(event:ResultEvent):void
Parameters
event:ResultEvent |
getMethod | () | method |
getOperation | () | method |
public function getOperation(name:String):AbstractOperation
Parameters
name:String |
AbstractOperation |
hasProperty | () | method |
flash_proxy override function hasProperty(name:*):Boolean
Parameters
name:* |
Boolean |