Class org.as2lib.test.speed.PropertyTestCase

Implemented Interfaces

Test

Description

PropertyTestCase profiles a property.

Field Index

Inherited from AbstractTest

Method Index

new PropertyTestCase()
getProperty(), PropertyTestCaseByObjectAndName(), PropertyTestCaseByProperty(), run()

Inherited from AbstractTest

Inherited from BasicClass

Constructor Detail

PropertyTestCase

public function PropertyTestCase()

Method Detail

PropertyTestCaseByProperty

public function PropertyTestCaseByProperty(property:PropertyInfo, referenceScope, referenceName:String):Void

Constructs a new PropertyTestCase by property.

If you want to profile a method, referenced from a different scope and with a different name you can specify thse with the last two arguments. Note that if specified the method declared on the class will not be profiled but its reference.

Parameters

propertythe property to profile
referenceScope(optional) the scope of the property reference to profile
referenceName(optional) the name of the property reference to profile

Throws

IllegalArgumentExceptionif the passed-in property is null or undefined

PropertyTestCaseByObjectAndName

public function PropertyTestCaseByObjectAndName(object, propertyName:String):Void

Constructs a new PropertyTestCase by object and property name.

Parameters

objectthe object that declares the property to profile
propertyNamethe name of the property to profile

Throws

IllegalArgumentExceptionif there is no property with the given propertyName on the given object

getProperty

public function getProperty(Void):PropertyInfo

Returns the profiled property.

Return

the profiled property

run

public function run(Void):Void

Runs this property test case.

Specified By

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