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

Package | org.flexunit.internals.runners
Class | public class SuiteMethod
Inheritance | SuiteMethod FlexUnit1ClassRunner Object

Extends FlexUnit1ClassRunner SuiteMethod adds in the testFromSuiteMethod static class that is used to create a suite method from the passed in `Class`

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | description : IDescription [read-only] Returns an IDescription of the test class that the runner is running. | FlexUnit1ClassRunner

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | SuiteMethod(klass:Class) Constructor. | SuiteMethod
|  | createAdaptingListener(notifier:IRunNotifier, token:AsyncTestToken):TestListener [static] Creates a TestListener using a provided notifier and token. | FlexUnit1ClassRunner
|  | filter(filter:IFilter):void Will apply a Filter to the test object. | FlexUnit1ClassRunner
|  | getClassFromTest(test:Test):Class [static] Returns the Class for a provided Test. | FlexUnit1ClassRunner
|  | pleaseStop():void Ask that the tests run stop before starting the next test. | FlexUnit1ClassRunner
|  | run(notifier:IRunNotifier, previousToken:IAsyncTestToken):void Runs the test class and updates the notifier on the status of running the tests. | FlexUnit1ClassRunner
|  | testFromSuiteMethod(clazz:Class):Test [static] Creates a test from a method in the suite. | SuiteMethod

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | describeChild(child:*):IDescription Returns an IDescription for child. | FlexUnit1ClassRunner
|  | handleTestComplete(result:ChildResult):void Handles the results of a single test completing. | FlexUnit1ClassRunner

Constructor Detail

SuiteMethod | () | Constructor

`public function SuiteMethod(klass:Class)`

Constructor.

Parameters

| `klass:Class`

Method Detail

testFromSuiteMethod | () | method

`public static function testFromSuiteMethod(clazz:Class):Test`

Creates a test from a method in the suite. If there is no static suite() method, then an error is thrown.

Parameters

| `clazz:Class` — Class that the suite method is in.

Returns

| `Test` — Test - Returns a Test

See also

flexunit.framework.Test

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