Packageorg.flexunit.internals.runners
Classpublic class SuiteMethod
InheritanceSuiteMethod Inheritance FlexUnit1ClassRunner Inheritance 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
 PropertyDefined By
 Inheriteddescription : IDescription
[read-only] Returns an IDescription of the test class that the runner is running.
FlexUnit1ClassRunner
Public Methods
 MethodDefined By
  
SuiteMethod(klass:Class)
Constructor.
SuiteMethod
 Inherited
createAdaptingListener(notifier:IRunNotifier, token:AsyncTestToken):TestListener
[static] Creates a TestListener using a provided notifier and token.
FlexUnit1ClassRunner
 Inherited
filter(filter:IFilter):void
Will apply a Filter to the test object.
FlexUnit1ClassRunner
 Inherited
getClassFromTest(test:Test):Class
[static] Returns the Class for a provided Test.
FlexUnit1ClassRunner
 Inherited
pleaseStop():void
Ask that the tests run stop before starting the next test.
FlexUnit1ClassRunner
 Inherited
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
 MethodDefined By
 Inherited
Returns an IDescription for child.
FlexUnit1ClassRunner
 Inherited
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