Class org.as2lib.test.speed.MethodInvocationTestSuiteResult

org.as2lib.core.BasicClass
   +--org.as2lib.test.speed.AbstractTestResult
      +--org.as2lib.test.speed.AbstractTestSuiteResult
         +--org.as2lib.test.speed.MethodInvocationTestSuiteResult

Implemented Interfaces

ConfigurableTestSuiteResult MethodInvocationHolder

Description

MethodInvocationTestSuiteResult holds multiple sub-test results and is based on a method invocation.

Field Index

Inherited from AbstractTestSuiteResult

AVERAGE_TIME, METHOD_INVOCATION_COUNT, METHOD_INVOCATION_PERCENTAGE, METHOD_INVOCATION_SUCCESSION, NAME, TIME, TIME_PERCENTAGE

Method Index

new MethodInvocationTestSuiteResult()

getMethodInvocation(), getName(), getTime(), toString()

Inherited from AbstractTestSuiteResult

addTestResult(), getAllMethodInvocations(), getAverageTime(), getMethodInvocationCount(), getMethodInvocationPercentage(), getTestResultCount(), getTestResults(), hasMethodInvocations(), hasTestResults(), sort()

Inherited from AbstractTestResult

getTimePercentage()

Constructor Detail

MethodInvocationTestSuiteResult

public function MethodInvocationTestSuiteResult(methodInvocation:MethodInvocation)

Constructs a new MethodInvocationTestSuiteResult instance.

Parameters

methodInvocationthe method invocation to wrap

Method Detail

getMethodInvocation

public function getMethodInvocation(Void):MethodInvocation

Returns the held method invocation.

Return

the held method invocation

Specified By

getMethodInvocation() in org.as2lib.test.speed.MethodInvocationHolder

getName

public function getName(Void):String

Returns the name of this test result. This is the name of the wrapped method invocation.

Return

the name of this test result

getTime

public function getTime(Void):Number

Returns the total invocation time in milliseconds.

Return

the total invocation time in milliseconds

toString

public function toString():String

Returns the string representation of this test result. This includes the string representation of all sub-tests.

Parameters

Return

the string representation of this test result

Specified By

toString() in org.as2lib.core.BasicInterface

Overrides

toString() in org.as2lib.core.BasicClass