Packageorg.flexunit.internals.runners.statements
Classpublic class RunBeforesInline
InheritanceRunBeforesInline Inheritance AsyncStatementBase Inheritance Object
Implements IAsyncStatement

Runs the [Before] methods of a test in the BlockFlexUnit4ClassRunner inline before procceding to the actual test.



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
  
RunBeforesInline(befores:Array, target:Object, statement:IAsyncStatement)
Constructor
RunBeforesInline
  
evaluate(parentToken:AsyncTestToken):void
Begins execution of the Before methods
RunBeforesInline
  
Called to provide this class an opportunity to inspect or change the result of the test run before allowing control to continue passing up the wrapped statements.
RunBeforesInline
  
Called when all Before methods have been run
RunBeforesInline
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
RunBeforesInline()Constructor
public function RunBeforesInline(befores:Array, target:Object, statement:IAsyncStatement)

Constructor

Parameters
befores:Array — Array of FrameworkMethod instances with Before metadata
 
target:Object — The test class
 
statement:IAsyncStatement — the statement being wrapped by this class
Method Detail
evaluate()method
public function evaluate(parentToken:AsyncTestToken):void

Begins execution of the Before methods

Parameters

parentToken:AsyncTestToken

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

Called to provide this class an opportunity to inspect or change the result of the test run before allowing control to continue passing up the wrapped statements.

Parameters

result:ChildResult

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

Called when all Before methods have been run

Parameters

result:ChildResult