Class org.as2lib.test.unit.TestSuite

org.as2lib.core.BasicClass
   +--org.as2lib.test.unit.TestSuite

Implemented Interfaces

Test

Description

Composite Implementation for Tests. A TestSuite is a collection of Tests. While TestSuite implements Test it is possible to even add TestSuite to the TestSuite.

Method Index

new TestSuite()

addTest(), blockCollecting(), getName(), getResultFactory(), getTests(), run()

Inherited from BasicClass

toString()

Constructor Detail

TestSuite

public function TestSuite(name:String)

Constructs a new TestSuite.

Parameters

nameName of the TestSuite.

Method Detail

getResultFactory

public function getResultFactory(Void):TestResultFactory

Description copied from Test

Returns the Information information sheet for the Result.

Warning: The Result might be not complete! The Result will get filled during the execution of the Testcase.

Specified By

getResultFactory() in org.as2lib.test.unit.Test

addTest

public function addTest(test:Test):Void

Adds a Test to the TestSuite.

Parameters

testTest that should be added.

Throws

IllegalArgumentExceptionIf you add the TestSuite to itself.

getName

public function getName(Void):String

Getter for the name of the TestSuite.

Return

Name of the TestSuite.

run

public function run():TestRunner

Runs the TestSuite (implementation of Test.run)

Parameters

Return

TestRunner that run this test (including all informations about the run).

Specified By

run() in org.as2lib.test.unit.Test

blockCollecting

static public function blockCollecting(Void):Boolean

Blocks collecting of TestSuiteFactory

Return

true to not get collected.

getTests

public function getTests(Void):TypedArray

Getter for all Tests contained within the TestSuite.

Return

TypedArray that contains all Tests of the TestSuite.