Packageorg.flexunit.runners.model
Classpublic class ParameterizedMethod
InheritanceParameterizedMethod Inheritance FrameworkMethod Inheritance Object

Used to expand on the number of methods in a class in the presence of a TestNG style Parameterized runner where a Test is provided a dataProvider. One of these classes is constructed for each dataset



Public Properties
 PropertyDefined By
  arguments : Array
[read-only] Arguments to be passed to the test
ParameterizedMethod
 InheritedisAsync : Boolean
[read-only]
FrameworkMethod
 Inheritedmetadata : Array
[read-only] Returns the method's metadata.
FrameworkMethod
 Inheritedmethod : Method
[read-only] Returns the underlying method.
FrameworkMethod
  name : String
[override] [read-only] Returns the method's name.
ParameterizedMethod
Public Methods
 MethodDefined By
  
ParameterizedMethod(method:Method, arguments:Array, methodIndex:uint, totalMethods:uint)
Constructor
ParameterizedMethod
 Inherited
applyExplosively(target:Object, params:Array):void
Calls the method with the provided set of params for the target class.
FrameworkMethod
 Inherited
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
 Inherited
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
 Inherited
invokeExplosivelyAsync1(parentToken:AsyncTestToken, target:Object, ... params):void
Returns the result of invoking this method on target with parameters params.
FrameworkMethod
 Inherited
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
 Inherited
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
 Inherited
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
Protected Methods
 MethodDefined By
  
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
ParameterizedMethod
Property Detail
argumentsproperty
arguments:Array  [read-only]

Arguments to be passed to the test


Implementation
    public function get arguments():Array
nameproperty 
name:String  [read-only] [override]

Returns the method's name.


Implementation
    public function get name():String
Constructor Detail
ParameterizedMethod()Constructor
public function ParameterizedMethod(method:Method, arguments:Array, methodIndex:uint, totalMethods:uint)

Constructor

Parameters
method:Method
 
arguments:Array
 
methodIndex:uint
 
totalMethods:uint
Method Detail
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.

Returns
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

Returns
Method — a new Method
toString()method 
override public function toString():String

Indicates that this is a ParameterizedMethod

Returns
String