Package | asunit.framework |
Class | public class AsynchronousTestCase |
Inheritance | AsynchronousTestCase TestCase Assert flash.events.EventDispatcher |
Implements | Test |
Subclasses | AsynchronousTestCaseExample |
Property | Defined by | ||
---|---|---|---|
ioErrorExpected : Boolean [write-only]
| AsynchronousTestCase | ||
remoteDuration : int [read-only]
| AsynchronousTestCase | ||
remoteTimeout : int [write-only]
| AsynchronousTestCase | ||
securityErrorExpected : Boolean [write-only]
| AsynchronousTestCase |
Method | Defined by | ||
---|---|---|---|
AsynchronousTestCase(testMethod:String = null)
| AsynchronousTestCase | ||
assertEquals(... args):void
[static]
Asserts that two objects are equal.
| Assert | ||
assertEqualsArrays(... args):void
[static]
Asserts that two arrays have the same length and contain the same
objects in the same order.
| Assert | ||
assertEqualsArraysIgnoringOrder(... args):void
[static]
Asserts that two arrays have the same length and contain the same
objects.
| Assert | ||
assertEqualsFloat(... args):void
[static]
Asserts that two numerical values are equal within a tolerance range.
| Assert | ||
assertFalse(... args):void
[static]
Asserts that a condition is false.
| Assert | ||
assertNotNull(... args):void
[static]
Asserts that an object isn't null.
| Assert | ||
assertNotSame(... args):void
[static]
Asserts that two objects do not refer to the same object.
| Assert | ||
assertNull(... args):void
[static]
Asserts that an object is null.
| Assert | ||
assertSame(... args):void
[static]
Asserts that two objects refer to the same object.
| Assert | ||
assertThrows(errorType:Class, block:Function):void
[static]
Asserts that the provided block throws an exception that matches
the type provided.
| Assert | ||
assertTrue(... args):void
[static]
Asserts that a condition is true.
| Assert | ||
asyncOperationComplete(async:AsyncOperation):void
| TestCase | ||
asyncOperationTimeout(async:AsyncOperation, duration:Number):void
| TestCase | ||
countTestCases():int
Counts the number of test cases executed by run(TestResult result).
| TestCase | ||
fail(message:String):void
[static]
Fails a test with the given message.
| Assert | ||
getContext():DisplayObjectContainer
Returns the visual
DisplayObjectContainer that will be used by
addChild and removeChild helper methods. | TestCase | ||
getCurrentMethod():String
| TestCase | ||
getIsComplete():Boolean
| TestCase | ||
getName():String
Gets the name of a TestCase
| TestCase | ||
TestCase | |||
getTestMethods():Array
| TestCase | ||
remoteDurationIsValid():Boolean
| AsynchronousTestCase | ||
run():void
| AsynchronousTestCase | ||
runBare():void
Runs the bare test sequence.
| TestCase | ||
setContext(context:DisplayObjectContainer):void
| TestCase | ||
setName(name:String):void
Sets the name of a TestCase
| TestCase | ||
setResult(result:TestListener):void
| TestCase | ||
testRemoteDuration():void
| AsynchronousTestCase | ||
testUnauthorizedAccess():void
| AsynchronousTestCase | ||
toString():String
Returns a string representation of the test case
| TestCase |
Method | Defined by | ||
---|---|---|---|
addAsync(handler:Function = null, duration:Number):Function
Called from within
setUp or the body of any test method. | TestCase | ||
addChild(child:DisplayObject):DisplayObject
Helper method for testing
DisplayObject s. | TestCase | ||
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 | ||
completeHandler(event:Event):void
| AsynchronousTestCase | ||
configureListeners(loader:URLLoader):void
| AsynchronousTestCase | ||
configureResponder(token:AsyncToken):void
| AsynchronousTestCase | ||
Creates a default TestResult object
| TestCase | ||
faultFunc(event:Object):void
| AsynchronousTestCase | ||
httpStatusHandler(event:HTTPStatusEvent):void
| AsynchronousTestCase | ||
ioErrorHandler(event:IOErrorEvent):void
| AsynchronousTestCase | ||
openHandler(event:Event):void
| AsynchronousTestCase | ||
progressHandler(event:ProgressEvent):void
| AsynchronousTestCase | ||
removeChild(child:DisplayObject):DisplayObject
Helper method for removing added
DisplayObject s. | TestCase | ||
resultFunc(event:Object):void
| AsynchronousTestCase | ||
runTearDown():void
| TestCase | ||
runTests():void
| AsynchronousTestCase | ||
securityErrorHandler(event:SecurityErrorEvent):void
| AsynchronousTestCase | ||
setDataSource(event:Event):void
| AsynchronousTestCase | ||
setTestMethods(methodNodes:XMLList):void
| TestCase | ||
setUp():void
Sets up the fixture, for example, instantiate a mock object.
| TestCase | ||
tearDown():void
Tears down the fixture, for example, delete mock object.
| TestCase |
Constant | Defined by | ||
---|---|---|---|
DEFAULT_REMOTE_TIMEOUT : int = 30000 [static]
| AsynchronousTestCase | ||
DEFAULT_TIMEOUT : int = 1000 [static]
| TestCase | ||
PRE_SET_UP : int = 0 [static]
| TestCase | ||
RUN_METHOD : int = 2 [static]
| TestCase | ||
SET_UP : int = 1 [static]
| TestCase | ||
TEAR_DOWN : int = 3 [static]
| TestCase |
ioErrorExpected | property |
ioErrorExpected:Boolean
[write-only]Implementation
public function set ioErrorExpected(value:Boolean):void
remoteDuration | property |
remoteDuration:int
[read-only]Implementation
public function get remoteDuration():int
remoteTimeout | property |
remoteTimeout:int
[write-only]Implementation
public function set remoteTimeout(value:int):void
securityErrorExpected | property |
securityErrorExpected:Boolean
[write-only]Implementation
public function set securityErrorExpected(value:Boolean):void
AsynchronousTestCase | () | constructor |
public function AsynchronousTestCase(testMethod:String = null)
Parameters
testMethod:String (default = null )
|
completeHandler | () | method |
protected final function completeHandler(event:Event):void
Parameters
event:Event |
configureListeners | () | method |
protected function configureListeners(loader:URLLoader):void
Parameters
loader:URLLoader |
configureResponder | () | method |
protected function configureResponder(token:AsyncToken):void
Parameters
token:AsyncToken |
faultFunc | () | method |
protected function faultFunc(event:Object):void
Parameters
event:Object |
httpStatusHandler | () | method |
protected function httpStatusHandler(event:HTTPStatusEvent):void
Parameters
event:HTTPStatusEvent |
ioErrorHandler | () | method |
protected final function ioErrorHandler(event:IOErrorEvent):void
Parameters
event:IOErrorEvent |
openHandler | () | method |
protected function openHandler(event:Event):void
Parameters
event:Event |
progressHandler | () | method |
protected function progressHandler(event:ProgressEvent):void
Parameters
event:ProgressEvent |
remoteDurationIsValid | () | method |
public function remoteDurationIsValid():Boolean
Returns
Boolean |
resultFunc | () | method |
protected function resultFunc(event:Object):void
Parameters
event:Object |
run | () | method |
public override function run():void
runTests | () | method |
protected final function runTests():void
securityErrorHandler | () | method |
protected final function securityErrorHandler(event:SecurityErrorEvent):void
Parameters
event:SecurityErrorEvent |
setDataSource | () | method |
protected function setDataSource(event:Event):void
Parameters
event:Event |
testRemoteDuration | () | method |
public function testRemoteDuration():void
testUnauthorizedAccess | () | method |
public function testUnauthorizedAccess():void
DEFAULT_REMOTE_TIMEOUT | constant |
protected static const DEFAULT_REMOTE_TIMEOUT:int = 30000