General-purpose methods for the test framework
The framework provides several general-purpose methods.
Method: getName
getName() : String
The getName method retrieves the value of the object's name property.
The name property can be assigned in the object's constructor or by calling the
setName method.
Method: getUniqueSuffixForTest
getUniqueSuffixForTest() : String
The getUniqueSuffixForTest method generates a globally unique string. Possible uses of the
string include avoidance of duplicate keys and as a suffix to the test object's name
property.
mySampleTest01.setName("MySampleTest" + mySampleTest01.getUniqueSuffixForTest())
mySampleTest02.setName("MySampleTest" + mySampleTest02.getUniqueSuffixForTest())
Method: setName
setName(name : String) : void
The setName method assigns the value of the name argument to the object's
name property.
Method: toString
toString() : String
The toString method returns a string representation of the test object.
In the base class implementation, the object's string representation is constructed by concatenating the following values.
- The object's name property
- The object's package name
- The object's class name
The format of the concatenated string is name(package.class).
