Class org.as2lib.test.unit.TestCaseMethodInfo

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

Description

Informationholder for all Informations related to the execution of a Method within a Testcase.

Method Index

new TestCaseMethodInfo()

addInfo(), executeTo(), getErrors(), getInfos(), getMethodInfo(), getName(), getOperationTime(), getStopWatch(), getTestRunner(), hasErrors(), hasFinished(), isExecuted(), toString()

Constructor Detail

TestCaseMethodInfo

public function TestCaseMethodInfo(methodInfo:MethodInfo, testRunner:TestRunner)

Constructs a new Informations for a TestCase method.

Parameters

methodInfoReflection based information of the method.
testRunnerTestRunner that executed the test.

Method Detail

getTestRunner

public function getTestRunner(Void):TestRunner

Getter for the TestRunner that executed this method.

Return

TestRunner that executed this method.

getStopWatch

public function getStopWatch(Void):StopWatch

Getter for the Stopwatch that is held by this class.

Return

StopWatch related to this class.

hasFinished

public function hasFinished(Void):Boolean

Information if the method has been executed.

Return

true if the method has been executed.

hasErrors

public function hasErrors(Void):Boolean

Information if the method contains errors.

Return

true if the method contains errors.

getOperationTime

public function getOperationTime(Void):Number

Getter for the available operation time.

Return

Operation time in milliseconds.

getMethodInfo

public function getMethodInfo(Void):MethodInfo

Getter for the Reflection based method information.

Return

Original MethodInfo to the executed method.

addInfo

public function addInfo(info:ExecutionInfo):Void

Adds a Information about the execution of the method.

Parameters

infoInformation that should be added.

getInfos

public function getInfos(Void):TypedArray

Getter for all infos occured during the execution. Returns a copy of all infos!

Return

List of all infos occured during execution.

getErrors

public function getErrors(Void):TypedArray

Getter for all errors occured during the execution.

Return

List of all errors occured during execution of the method.

isExecuted

public function isExecuted(Void):Boolean

Return

True if the method was executed by @see #executeTo

executeTo

public function executeTo(scope):Void

Executes the method to a scope.

toString

public function toString():String

Extended .toString implementation.

Return

TestCaseMethodInfo as well formated String.

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass

getName

public function getName(Void):String