Class org.as2lib.test.unit.TestCaseResult

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

Implemented Interfaces

TestResult

Description

Wrapper for a TestCase that contains a API to all Informations to the execution of the Testcase.

Method Index

new TestCaseResult()

getMethodInfos(), getName(), getOperationTime(), getPercentage(), getTestCase(), getTestCaseResults(), getTestResults(), getTestRunner(), hasErrors(), hasFinished(), hasStarted(), toString()

Constructor Detail

TestCaseResult

public function TestCaseResult(testCase:TestCase, testRunner:TestRunner)

Constructs a new TestCaseResult.

Parameters

testCaseTestCase to wrap.
testRunnerTestRunner that initialized the TestCaseResult.

Method Detail

getMethodInfos

public function getMethodInfos(Void):TypedArray

Getter for all Informations about the methods contained within the TestCase. Test method get recognized by the pattern: "test*"

Return

List of all methods contained within this TestCase.

getTestRunner

public function getTestRunner(Void):TestRunner

Getter for the Testrunner that executed the TestCase.

Return

Testrunner that executed the TestCase.

getTestCase

public function getTestCase(Void):TestCase

Getter for the wrapped TestCase.

Return

Wrapped TestCase.

getName

public function getName(Void):String

Getter for the name of the TestCase.

Return

name of the TestCase.

Specified By

getName() in org.as2lib.test.unit.TestResult

getTestResults

public function getTestResults(Void):TypedArray

Implementation of @see TestResult#getTestResults.

Return

This TestCaseResult in a new list for Results.

Specified By

getTestResults() in org.as2lib.test.unit.TestResult

getPercentage

public function getPercentage(Void):Number

Getter for the total percentage of the execution.

Return

Percentage of execution.

Specified By

getPercentage() in org.as2lib.test.unit.TestResult

hasFinished

public function hasFinished(Void):Boolean

Return

true if the TestCase has been finished.

Specified By

hasFinished() in org.as2lib.test.unit.TestResult

hasStarted

public function hasStarted(Void):Boolean

Return

true if the TestCase has been started.

Specified By

hasStarted() in org.as2lib.test.unit.TestResult

getOperationTime

public function getOperationTime(Void):Number

Getter for the total operation time.

Return

Total operation time in milliseconds.

Specified By

getOperationTime() in org.as2lib.test.unit.TestResult

hasErrors

public function hasErrors(Void):Boolean

Return

True if the Testcase has errors.

Specified By

hasErrors() in org.as2lib.test.unit.TestResult

getTestCaseResults

public function getTestCaseResults(Void):TypedArray

Getter for all TestCase results. Implementation of @see TestResult#getTestCaseResults.

Return

The Testcase in a list of TestCaseResults.

Specified By

getTestCaseResults() in org.as2lib.test.unit.TestResult

toString

public function toString():String

Extended .toString implementation.

Return

TestCaseResult as well formated String.

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass