Package | org.flexunit.experimental.runners.statements |
Class | public class MethodCompleteWithParamsStatement |
Inheritance | MethodCompleteWithParamsStatement ![]() ![]() |
Implements | IAsyncStatement |
MethodCompleteWithParamsStaetement
is responsible for executing a theory method with a single
set of parameters.
Method | Defined 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 | ||
handleChildExecuteComplete(result:ChildResult):void
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 |
MethodCompleteWithParamsStatement | () | Constructor |
public function MethodCompleteWithParamsStatement(frameworkMethod:FrameworkMethod, anchor:TheoryAnchor, complete:Assignments, freshInstance:Object)
Constructor.
ParametersframeworkMethod: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.
|
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.
ReturnsString |