Packageorg.flexunit.experimental.runners.statements
Classpublic class MethodCompleteWithParamsStatement
InheritanceMethodCompleteWithParamsStatement Inheritance AsyncStatementBase Inheritance Object
Implements IAsyncStatement

The MethodCompleteWithParamsStaetement is responsible for executing a theory method with a single set of parameters.



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
  
MethodCompleteWithParamsStatement(frameworkMethod:FrameworkMethod, anchor:TheoryAnchor, complete:Assignments, freshInstance:Object)
Constructor.
MethodCompleteWithParamsStatement
  
evaluate(parentToken:AsyncTestToken):void
Executes the current theory method with the provided values from the complete Assignments.
MethodCompleteWithParamsStatement
  
Tells the parent token that the method has finished running and provides it with any encountered errors.
MethodCompleteWithParamsStatement
  
toString():String
[override] Returns a string that includes the name of the method, the assigned parameters, and the new instance of the current test class.
MethodCompleteWithParamsStatement
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
MethodCompleteWithParamsStatement()Constructor
public function MethodCompleteWithParamsStatement(frameworkMethod:FrameworkMethod, anchor:TheoryAnchor, complete:Assignments, freshInstance:Object)

Constructor.

Parameters
frameworkMethod:FrameworkMethod — The current theory that is being tested.
 
anchor:TheoryAnchor — The anchor for the current theory that is being tested.
 
complete:Assignments — Contains values that can be applied to the theory method.
 
freshInstance:Object — An instance of the current test class.
Method Detail
evaluate()method
public function evaluate(parentToken:AsyncTestToken):void

Executes the current theory method with the provided values from the complete Assignments.

Parameters

parentToken:AsyncTestToken — The token to be notified when the theory method has finished running.

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

Tells the parent token that the method has finished running and provides it with any encountered errors.

Parameters

result:ChildResult — A ChildResult that contains potential errors encountered during execution.

toString()method 
override public function toString():String

Returns a string that includes the name of the method, the assigned parameters, and the new instance of the current test class.

Returns
String