Packagecom.asfusion.mate.testing
Classpublic class MockDelegate
InheritanceMockDelegate Inheritance flash.utils.Proxy
Implementsflash.events.IEventDispatcher



Public Properties
 PropertyDefined 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
Protected Properties
 PropertyDefined by
  eventDispatcher : EventDispatcher
MockDelegate
  operationsDictionary : Dictionary
MockDelegate
Public Methods
 MethodDefined by
  
Constructor
MockDelegate
  
getOperation(name:String):AbstractOperation
MockDelegate
Protected Methods
 MethodDefined by
  
dispatchFault(event:FaultEvent):void
MockDelegate
  
dispatchResult(event:ResultEvent):void
MockDelegate
  
getMethod(name:String):MockMethod
MockDelegate
  
hasProperty(name:*):Boolean
MockDelegate
Property detail
cacheproperty
public var cache:Boolean = true

delayproperty 
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).

eventDispatcherproperty 
protected var eventDispatcher:EventDispatcher

mockGeneratorproperty 
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.

operationsDictionaryproperty 
protected var operationsDictionary:Dictionary

showBusyCursorproperty 
public var showBusyCursor:Boolean = false

If true, a busy cursor is displayed while a service is executing.

Constructor detail
MockDelegate()constructor
public function MockDelegate()

Constructor

Method detail
dispatchFault()method
protected function dispatchFault(event:FaultEvent):voidParameters
event:FaultEvent
dispatchResult()method 
protected function dispatchResult(event:ResultEvent):voidParameters
event:ResultEvent
getMethod()method 
protected function getMethod(name:String):MockMethod

Parameters
name:String

Returns
MockMethod
getOperation()method 
public function getOperation(name:String):AbstractOperation

Parameters
name:String

Returns
AbstractOperation
hasProperty()method 
flash_proxy override function hasProperty(name:*):BooleanParameters
name:*

Returns
Boolean