Packageorg.flexunit.internals.runners.statements
Classpublic class RunAftersInline
InheritanceRunAftersInline Inheritance AsyncStatementBase Inheritance Object
Implements IAsyncStatement

Runs the [After] methods of a test in the BlockFlexUnit4ClassRunner inline after the actual test has executed.



Protected Properties
 PropertyDefined By
 InheritedmyToken : AsyncTestToken
The AsyncTestToken for the current statment.
AsyncStatementBase
 InheritedparentToken : AsyncTestToken
The AsyncTestToken for the parent of the current statment.
AsyncStatementBase
Public Methods
 MethodDefined By
  
RunAftersInline(afters:Array, target:Object, statement:IAsyncStatement)
Constructor
RunAftersInline
  
evaluate(parentToken:AsyncTestToken):void
Called to do any work or setup prior to the actual test run
RunAftersInline
  
Called when the all statements between the test execution and this statement have completed.
RunAftersInline
  
Called once all methods marked [After] have been executed.
RunAftersInline
Protected Methods
 MethodDefined By
 Inherited
sendComplete(error:Error = null):void
If the parentToken has not already been alerted that the statement has completed, alert the parent token that the current statement has finished.
AsyncStatementBase
Constructor Detail
RunAftersInline()Constructor
public function RunAftersInline(afters:Array, target:Object, statement:IAsyncStatement)

Constructor

Parameters
afters:Array — an array of FrameworkMethod instances marked with After metadata
 
target:Object — the actual test case
 
statement:IAsyncStatement — the statement wrapped by this class
Method Detail
evaluate()method
public function evaluate(parentToken:AsyncTestToken):void

Called to do any work or setup prior to the actual test run

Parameters

parentToken:AsyncTestToken

handleNextStatementExecuteComplete()method 
public function handleNextStatementExecuteComplete(result:ChildResult):void

Called when the all statements between the test execution and this statement have completed. This launches the execution of any methods marked with [After]

Parameters

result:ChildResult — the result of the test execution and subsequent statements

handleSequenceExecuteComplete()method 
public function handleSequenceExecuteComplete(result:ChildResult):void

Called once all methods marked [After] have been executed.

Parameters

result:ChildResult