Packagecom.asfusion.mate.testing
Classpublic class MockWebService
InheritanceMockWebService Inheritance mx.rpc.soap.mxml.WebService

Default MXML Propertymethods



Public Properties
 PropertyDefined by
  cache : Boolean = true
MockWebService
  delay : uint = 0
Number of seconds to take to return the result or fault after making the call.
MockWebService
  methods : Array
MockWebService
  mockGenerator : Class
Class to instantiate that will generate the mock result.
MockWebService
Protected Properties
 PropertyDefined by
  methodsDictionary : Dictionary
MockWebService
Public Methods
 MethodDefined by
  
MockWebService(destination:String = null)
Contructor
MockWebService
  
getOperation(name:String):AbstractOperation
MockWebService
Protected Methods
 MethodDefined by
  
dispatchFault(event:FaultEvent):void
MockWebService
  
dispatchResult(event:ResultEvent):void
MockWebService
  
getMethod(name:String):MockMethod
MockWebService
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).

methodsproperty 
methods:Array  [read-write]

Implementation
    public function get methods():Array
    public function set methods(value:Array):void
methodsDictionaryproperty 
protected var methodsDictionary:Dictionary
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.

Constructor detail
MockWebService()constructor
public function MockWebService(destination:String = null)

Contructor

Parameters
destination:String (default = null)
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):MockMethodParameters
name:String

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

Parameters
name:String

Returns
AbstractOperation