Package | asunit.framework |
Class | public class TestCaseExample |
Inheritance | TestCaseExample TestCase Assert flash.events.EventDispatcher |
Method | Defined by | ||
---|---|---|---|
TestCaseExample(testMethod:String = null)
| TestCaseExample | ||
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 | ||
run():void
A convenience method to run this test, collecting the results with
either the TestResult provided or a default, new TestResult object.
| TestCase | ||
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 | ||
testAsyncFeature():void
| TestCaseExample | ||
testInstantiated():void
| TestCaseExample | ||
testMonthGetterSetter():void
| TestCaseExample | ||
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 | ||
changeHandler(event:Event):void
| TestCaseExample | ||
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 | ||
Creates a default TestResult object
| TestCase | ||
removeChild(child:DisplayObject):DisplayObject
Helper method for removing added
DisplayObject s. | TestCase | ||
runTearDown():void
| TestCase | ||
setTestMethods(methodNodes:XMLList):void
| TestCase | ||
setUp():void
| TestCaseExample | ||
tearDown():void
| TestCaseExample |
TestCaseExample | () | constructor |
public function TestCaseExample(testMethod:String = null)
Parameters
testMethod:String (default = null )
|
changeHandler | () | method |
protected function changeHandler(event:Event):void
Parameters
event:Event |
setUp | () | method |
protected override function setUp():void
tearDown | () | method |
protected override function tearDown():void
testAsyncFeature | () | method |
public function testAsyncFeature():void
testInstantiated | () | method |
public function testInstantiated():void
testMonthGetterSetter | () | method |
public function testMonthGetterSetter():void