Access keys

PropertyTestCase

Kind of class: class
Inherits from: AbstractTest < BasicClass
Implements:
Author: Simon Wacker
Classpath: org.as2lib.test.speed.PropertyTestCase
File last modified: Friday, 01 July 2005, 19:57:40
PropertyTestCase profiles a property.

Summary

Constructor
Class properties
Instance properties
Instance properties inherited from AbstractTest
Instance methods
Instance methods inherited from AbstractTest
Instance methods inherited from BasicClass

Instance methods

getProperty

function getProperty (
Void) : PropertyInfo
Returns the profiled property.
Returns:
the profiled property

PropertyTestCaseByObjectAndName

function PropertyTestCaseByObjectAndName (
object, propertyName:String) : Void
Constructs a new PropertyTestCase by object and property name.
Parameters:
object :
the object that declares the property to profile
propertyName:
the name of the property to profile
Throws:
org.as2lib.env.except.IllegalArgumentException if there is no property with the given
propertyName on the given object

PropertyTestCaseByProperty

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:
property :
the property to profile
referenceScope:
(optional) the scope of the property reference to profile
referenceName :
(optional) the name of the property reference to profile
Throws:
org.as2lib.env.except.IllegalArgumentException if the passed-in property is
null or undefined

run

function run (
Void) : Void
Runs this property test case.