| Package | com.asfusion.mate.testing |
| Class | public class MockRemoteObject |
| Inheritance | MockRemoteObject mx.rpc.remoting.mxml.RemoteObject |
Default MXML Propertymethods
| Property | Defined by | ||
|---|---|---|---|
| cache : Boolean = true | MockRemoteObject | ||
| delay : uint = 0
Number of seconds to take to return the result or fault after making the call.
| MockRemoteObject | ||
| methods : Array | MockRemoteObject | ||
| mockGenerator : Class
Class to instantiate that will generate the mock result.
| MockRemoteObject | ||
| Property | Defined by | ||
|---|---|---|---|
| methodsDictionary : Dictionary | MockRemoteObject | ||
| Method | Defined by | ||
|---|---|---|---|
|
MockRemoteObject(destination:String = null)
Contructor
| MockRemoteObject | ||
|
getOperation(name:String):AbstractOperation
| MockRemoteObject | ||
| Method | Defined by | ||
|---|---|---|---|
|
dispatchFault(event:FaultEvent):void
| MockRemoteObject | ||
|
dispatchResult(event:ResultEvent):void
| MockRemoteObject | ||
|
getMethod(name:String):MockMethod
| MockRemoteObject | ||
| cache | property |
public var cache:Boolean = true
| delay | property |
public var delay:uint = 0Number 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).
| methods | property |
methods:Array [read-write]Implementation
public function get methods():Array
public function set methods(value:Array):void
| methodsDictionary | property |
protected var methodsDictionary:Dictionary
| mockGenerator | property |
public var mockGenerator:ClassClass to instantiate that will generate the mock result. This attribute needs to be supplied here or in the individual MockMethod tags.
| MockRemoteObject | () | constructor |
public function MockRemoteObject(destination:String = null)Contructor
Parametersdestination:String (default = null) |
| dispatchFault | () | method |
protected function dispatchFault(event:FaultEvent):voidParameters
event:FaultEvent |
| dispatchResult | () | method |
protected function dispatchResult(event:ResultEvent):voidParameters
event:ResultEvent |
| getMethod | () | method |
| getOperation | () | method |
public override function getOperation(name:String):AbstractOperationParameters
name:String |
AbstractOperation |