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

Package | org.flexunit.runners.model
Class | public class TestClass
Inheritance | TestClass Object

The `TestClass` wraps a class that is to be executing, providing method validation and annotation searching.

Public Properties

| Property | Defined By
--- | --- | ---
|  | asClass : Class [read-only] Returns the underlying class. | TestClass
|  | klassInfo : Klass [read-only] Returns a Klass that was generated from the class provided to TestClass | TestClass
|  | metadata : Array [read-only] Returns the metadata on this class. | TestClass
|  | name : String [read-only] Returns the class's name. | TestClass

Public Methods

| Method | Defined By
--- | --- | ---
|  | TestClass(klass:Class) Constructor. | TestClass
|  | getMetaDataFields(metaTag:String, static:Boolean = false):Array | TestClass
|  | getMetaDataMethods(metaTag:String):Array Returns, efficiently, all the non-overridden methods in this class and its superclasses that contain the metadata tag metaTag. | TestClass
|  | toString():String Returns the name of the of the class. | TestClass

Property Detail

asClass | property

`asClass:Class` [read-only]

Returns the underlying class.

Implementation
`public function get asClass():Class`

klassInfo | property |

`klassInfo:Klass` [read-only]

Returns a `Klass` that was generated from the class provided to TestClass

Implementation
`public function get klassInfo():Klass`

metadata | property |

`metadata:Array` [read-only]

Returns the metadata on this class.

Implementation
`public function get metadata():Array`

name | property |

`name:String` [read-only]

Returns the class's name.

Implementation
`public function get name():String`
Constructor Detail

TestClass | () | Constructor

`public function TestClass(klass:Class)`

Constructor. Creates a `TestClass` wrapping `klass`. Each time this constructor executes, the class is scanned for annotations, which can be an expensive process (we hope in future players it will not be.) Therefore, try to share instances of `TestClass` where possible.

Parameters

| `klass:Class` — The Class to wrap.

Method Detail

getMetaDataFields | () | method

`public function getMetaDataFields(metaTag:String, static:Boolean = false):Array`

Parameters

| `metaTag:String`
| `static:Boolean` (default = `false`)``

Returns

| `Array`

getMetaDataMethods | () | method |

`public function getMetaDataMethods(metaTag:String):Array`

Returns, efficiently, all the non-overridden methods in this class and its superclasses that contain the metadata tag `metaTag`.

Parameters

| `metaTag:String` — The tag used to locate the methods.

Returns

| `Array` — all the non-overridden methods in this class and its superclasses that contain the metadata tag `metaTag`.

toString | () | method |

`public function toString():String`

Returns the name of the of the class.

Returns

| `String`

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