API Documentation | All Packages | All Classes | Index | Frames No Frames |
ParameterizedMethod

Package | org.flexunit.runners.model
Class | public class ParameterizedMethod
Inheritance | ParameterizedMethod FrameworkMethod 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
Hide Inherited Public Properties
Show Inherited Public Properties

| 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

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| 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

Protected Methods

| Method | Defined 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

arguments | property

`arguments:Array` [read-only]

Arguments to be passed to the test

Implementation
`public function get arguments():Array`

name | property |

`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`

Thu Apr 10 2014, 08:07 AM +10:00