Class org.as2lib.test.speed.TestSuiteFactory

Description

TestSuiteFactory collects test suites.

Method Index

new TestSuiteFactory()
collectAllTestCases(), collectTestCases(), collectTestCasesByClass(), collectTestCasesByPackage()

Inherited from BasicClass

Constructor Detail

TestSuiteFactory

public function TestSuiteFactory(Void)

Constructs a new TestSuiteFactory instance.

Method Detail

collectTestCases

public function collectTestCases():TestSuite

collectAllTestCases

public function collectAllTestCases(Void):TestSuite

Collects all methods and properties as test cases except the ones declared by Object.

Return

a test suite that contains all tests

collectTestCasesByPackage

public function collectTestCasesByPackage(package:PackageInfo):TestSuite

Collects all methods and properties of the given package and all sub-packages as test cases except the ones declared by Object.

Parameters

packagethe package to begin the collection at

Return

a test suite that contains all collected tests

collectTestCasesByClass

public function collectTestCasesByClass(clazz:ClassInfo):TestSuite

Collects all methods and properties of the given class as test cases. Methods and properties of super-classes are not included.

Parameters

clazzthe class to collect the methods and properties of

Return

a test suite that contains all collected tests