Package | org.flexunit.runners.model |
Class | public class ParameterizedMethod |
Inheritance | ParameterizedMethod ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
arguments : Array [read-only]
Arguments to be passed to the test
| ParameterizedMethod | ||
![]() | isAsync : Boolean [read-only] | FrameworkMethod | |
![]() | metadata : Array [read-only]
Returns the method's metadata. | FrameworkMethod | |
![]() | method : Method [read-only]
Returns the underlying method. | FrameworkMethod | |
name : String [override] [read-only]
Returns the method's name. | ParameterizedMethod |
Method | Defined By | ||
---|---|---|---|
ParameterizedMethod(method:Method, arguments:Array, methodIndex:uint, totalMethods:uint)
Constructor
| ParameterizedMethod | ||
![]() | applyExplosively(target:Object, params:Array):void
Calls the method with the provided set of params for the target class. | FrameworkMethod | |
![]() | getSpecificMetaDataArgValue(metaDataTag:String, key:String):String
Returns a metadata argument string based on whether the method's metadata has a matching metaDataTag
and key. | FrameworkMethod | |
![]() | hasMetaData(metaDataTag:String):Boolean
Determine if the method has metadata for a specific metaDataTag. | FrameworkMethod | |
invokeExplosively(target:Object, ... params):Object [override]
Calls the method with the provided set of params for the target class. | ParameterizedMethod | ||
![]() | invokeExplosivelyAsync1(parentToken:AsyncTestToken, target:Object, ... params):void
Returns the result of invoking this method on target with
parameters params. | FrameworkMethod | |
![]() | producesType(type:Class):Boolean
Returns a Boolean value indicating whether the method has no parameters and
whether the method has a return type that matches the provided type. | FrameworkMethod | |
toString():String [override]
Indicates that this is a ParameterizedMethod
| ParameterizedMethod | ||
![]() | validatePublicVoid(isStatic:Boolean, errors:Array):void
Adds to errors if this method:
is not public, or
returns something other than void, or
is static (given isStatic is false), or
is not static (given isStatic is true).
| FrameworkMethod | |
![]() | validatePublicVoidNoArg(isStatic:Boolean, errors:Array):void
Adds to errors if this method:
is not public, or
takes parameters, or
returns something other than void, or
is static (given isStatic is false), or
is not static (given isStatic is true).
| FrameworkMethod |
Method | Defined By | ||
---|---|---|---|
Produces a new method with modified order metadata to ensure a consistent order of
execution as compared to the data set order
| ParameterizedMethod |
arguments | property |
arguments:Array
[read-only] Arguments to be passed to the test
public function get arguments():Array
name | property |
name:String
[read-only] [override] Returns the method's name.
public function get name():String
ParameterizedMethod | () | Constructor |
public function ParameterizedMethod(method:Method, arguments:Array, methodIndex:uint, totalMethods:uint)
Constructor
Parametersmethod:Method | |
arguments:Array | |
methodIndex:uint | |
totalMethods:uint |
invokeExplosively | () | method |
override public function invokeExplosively(target:Object, ... params):Object
Calls the method with the provided set of params
for the target
class.
Parameters
target:Object — The AsyncTestToken to be notified when the method has been run.
| |
... params — The class that contains the method.
|
Object |
methodWithGuaranteedOrderMetaData | () | method |
protected function methodWithGuaranteedOrderMetaData(method:Method, methodIndex:int, totalMethods:int):Method
Produces a new method with modified order metadata to ensure a consistent order of execution as compared to the data set order
Parameters
method:Method — the existing method which needs expansion
| |
methodIndex:int — Current Index into the data set of this ParameterizedMethod
| |
totalMethods:int — total number of methods needed by the data set
|
Method — a new Method
|
toString | () | method |
override public function toString():String
Indicates that this is a ParameterizedMethod
ReturnsString |