Package | org.flexunit.internals.runners.statements |
Class | public class RunBefores |
Inheritance | RunBefores ![]() ![]() ![]() ![]() |
Implements | IAsyncStatement |
Subclasses | RunBeforesClass |
RunBefores
is a SequencerWithDecoration
for potential methods that have
Before
metadata and should be run before a test has started. This class also determines
whether methods tagged as before methods are asynchronous.
Method | Defined By | ||
---|---|---|---|
RunBefores(befores:Array, target:Object, statement:IAsyncStatement = null)
Constructor. | RunBefores | ||
![]() | addStep(child:IAsyncStatement):void
Adds a child that implements IAsyncStatement to the end of the queue of
statments to execute by the sequencer. | StatementSequencer | |
![]() | evaluate(parentToken:AsyncTestToken):void
Starts evaluating the queue of statements that was provided to the sequencer. | StatementSequencer | |
![]() | handleChildExecuteComplete(result:ChildResult):void
Determine if any errors were encountered for a potential statement that has just run and returned the
provided result. | StatementSequencer | |
![]() | toString():String [override]
Returns the current queue of statements that are in the sequence. | StatementSequencer |
Method | Defined By | ||
---|---|---|---|
![]() | executeStep(child:*):void [override]
Evaluates the provided child if the child is an
IAsyncStatement. | SequencerWithDecoration | |
![]() |
Creates an InvokeMethod object for the given method and test class
| SequencerWithDecoration | |
![]() | sendComplete(error:Error = null):void [override]
If an error is provided, it will be added to the list of errors encountered during the execution
of the statements. | StatementSequencer | |
![]() |
Creates an object that implements an IAsyncStatement and decorates it
| SequencerWithDecoration | |
[override]
Determine if a potential FrameworkMethod is asynchronous
| RunBefores |
RunBefores | () | Constructor |
public function RunBefores(befores:Array, target:Object, statement:IAsyncStatement = null)
Constructor.
Parametersbefores:Array — An array containing all statements that need to be executed before a test is executed.
| |
target:Object — The test class.
| |
statement:IAsyncStatement (default = null )
|
withPotentialAsync | () | method |
override protected function withPotentialAsync(method:FrameworkMethod, test:Object, statement:IAsyncStatement):IAsyncStatement
Determine if a potential FrameworkMethod
is asynchronous
Parameters
method:FrameworkMethod — The FrameworkMethod that the statement has wrapped
| |
test:Object — The current test class
| |
statement:IAsyncStatement — The current statement
|
IAsyncStatement — An object that implements an IAsyncStatement that has been decorated with a potential async
|