Packageasunit.framework
Classpublic class RemotingTestCase
InheritanceRemotingTestCase Inheritance TestCase Inheritance Assert Inheritance flash.events.EventDispatcher

RemotingTestCase



Protected Properties
 PropertyDefined by
  connection : NetConnection
RemotingTestCase
 Inheritedcontext : DisplayObjectContainer
TestCase
 InheritedfName : String
TestCase
 InheritedisComplete : Boolean
TestCase
 Inheritedresult : TestListener
TestCase
 InheritedtestMethods : Array
TestCase
Public Methods
 MethodDefined by
  
RemotingTestCase(testMethod:String = null)
Constructor
RemotingTestCase
 Inherited
assertEquals(... args):void
[static] Asserts that two objects are equal.
Assert
 Inherited
assertEqualsArrays(... args):void
[static] Asserts that two arrays have the same length and contain the same objects in the same order.
Assert
 Inherited
[static] Asserts that two arrays have the same length and contain the same objects.
Assert
 Inherited
assertEqualsFloat(... args):void
[static] Asserts that two numerical values are equal within a tolerance range.
Assert
 Inherited
assertFalse(... args):void
[static] Asserts that a condition is false.
Assert
 Inherited
assertNotNull(... args):void
[static] Asserts that an object isn't null.
Assert
 Inherited
assertNotSame(... args):void
[static] Asserts that two objects do not refer to the same object.
Assert
 Inherited
assertNull(... args):void
[static] Asserts that an object is null.
Assert
 Inherited
assertSame(... args):void
[static] Asserts that two objects refer to the same object.
Assert
 Inherited
assertThrows(errorType:Class, block:Function):void
[static] Asserts that the provided block throws an exception that matches the type provided.
Assert
 Inherited
assertTrue(... args):void
[static] Asserts that a condition is true.
Assert
 Inherited
TestCase
 Inherited
asyncOperationTimeout(async:AsyncOperation, duration:Number):void
TestCase
 Inherited
Counts the number of test cases executed by run(TestResult result).
TestCase
 Inherited
fail(message:String):void
[static] Fails a test with the given message.
Assert
 Inherited
getContext():DisplayObjectContainer
Returns the visual DisplayObjectContainer that will be used by addChild and removeChild helper methods.
TestCase
 Inherited
TestCase
 Inherited
getIsComplete():Boolean
TestCase
 Inherited
getName():String
Gets the name of a TestCase
TestCase
 Inherited
TestCase
 Inherited
TestCase
 Inherited
run():void
A convenience method to run this test, collecting the results with either the TestResult provided or a default, new TestResult object.
TestCase
 Inherited
runBare():void
Runs the bare test sequence.
TestCase
 Inherited
setContext(context:DisplayObjectContainer):void
TestCase
 Inherited
setName(name:String):void
Sets the name of a TestCase
TestCase
 Inherited
setResult(result:TestListener):void
TestCase
 Inherited
toString():String
Returns a string representation of the test case
TestCase
Protected Methods
 MethodDefined by
 Inherited
addAsync(handler:Function = null, duration:Number):Function
Called from within setUp or the body of any test method.
TestCase
 Inherited
addChild(child:DisplayObject):DisplayObject
Helper method for testing DisplayObjects.
TestCase
  
call($method:String = null, $responder:Responder = null, ... $arguments):void
Calls a remote service method and test it
RemotingTestCase
 Inherited
cleanUp():void
Override this method in Asynchronous test cases or any other time you want to perform additional member cleanup after all test methods have run
TestCase
  
connect($gateway:String = null, $encoding:uint = 0):void
Connects the gateway
RemotingTestCase
  
connectionIOErrorHandler(event:IOErrorEvent):void
Callback handler for receiving IOErrorEvent
RemotingTestCase
  
connectionSecurityErrorHandler(event:SecurityErrorEvent):void
Callback handler for receiving SecurityErrorEvent
RemotingTestCase
  
connectionStatusHandler(event:NetStatusEvent):void
Callback handler for receiving NetStatusEvent
RemotingTestCase
 Inherited
Creates a default TestResult object
TestCase
  
Dispose the netConnection instance
RemotingTestCase
  
Inits a netConnection instance and add all necessary event listeners
RemotingTestCase
 Inherited
removeChild(child:DisplayObject):DisplayObject
Helper method for removing added DisplayObjects.
TestCase
 Inherited
runTearDown():void
TestCase
 Inherited
setTestMethods(methodNodes:XMLList):void
TestCase
 Inherited
setUp():void
Sets up the fixture, for example, instantiate a mock object.
TestCase
 Inherited
tearDown():void
Tears down the fixture, for example, delete mock object.
TestCase
Protected Constants
 ConstantDefined by
 InheritedDEFAULT_TIMEOUT : int = 1000
[static]
TestCase
 InheritedPRE_SET_UP : int = 0
[static]
TestCase
 InheritedRUN_METHOD : int = 2
[static]
TestCase
 InheritedSET_UP : int = 1
[static]
TestCase
 InheritedTEAR_DOWN : int = 3
[static]
TestCase
Property detail
connectionproperty
protected var connection:NetConnection
Constructor detail
RemotingTestCase()constructor
public function RemotingTestCase(testMethod:String = null)

Constructor

Parameters
testMethod:String (default = null) — String Name of the test case
Method detail
call()method
protected function call($method:String = null, $responder:Responder = null, ... $arguments):void

Calls a remote service method and test it

Parameters
$method:String (default = null) — String Remote service
 
$responder:Responder (default = null) — Responder Responder to handle remoting calls
 
... $arguments — Array Rest paramaters (optional)
connect()method 
protected function connect($gateway:String = null, $encoding:uint = 0):void

Connects the gateway

Parameters
$gateway:String (default = null) — String Remote gateway
 
$encoding:uint (default = 0) — uint Object encoding using either AMF0 or AMF3
connectionIOErrorHandler()method 
protected function connectionIOErrorHandler(event:IOErrorEvent):void

Callback handler for receiving IOErrorEvent

Parameters
event:IOErrorEvent — IOErrorEvent
connectionSecurityErrorHandler()method 
protected function connectionSecurityErrorHandler(event:SecurityErrorEvent):void

Callback handler for receiving SecurityErrorEvent

Parameters
event:SecurityErrorEvent — SecurityErrorEvent
connectionStatusHandler()method 
protected function connectionStatusHandler(event:NetStatusEvent):void

Callback handler for receiving NetStatusEvent

Parameters
event:NetStatusEvent — NetStatusEvent
disposeConnection()method 
protected function disposeConnection():void

Dispose the netConnection instance

initConnection()method 
protected function initConnection():void

Inits a netConnection instance and add all necessary event listeners