private class TestDriver.SymbolLibrary
extends java.lang.Object
TestDriver
user. To add new functionality, the only change
required is to define a new method in this class.
The function name corresponds directly with the method name.
Modifier and Type | Field and Description |
---|---|
private long |
test1
Backing member for runtime variable "test1"; exposed via accessor
|
long |
test2
Backing member for runtime variable "test2"; exposed directly
|
Modifier | Constructor and Description |
---|---|
private |
SymbolLibrary() |
Modifier and Type | Method and Description |
---|---|
boolean |
boolTest(boolean test)
Return the boolean value of the argument passed in.
|
long |
getTest1()
Return the value of the runtime variable "test1".
|
boolean |
isTest3()
Return
true as the value of variable test3 . |
java.lang.String |
lower(java.lang.String text)
Lowercase the specified text.
|
java.lang.Long |
now()
Return the current time as milliseconds since midnight 1970/01/01.
|
java.lang.Double |
random(double mult)
Return a pseudo-random number
x in the range
0 ≤ x < mult if mult is positive, or
0 ≥ x > mult if mult is negative. |
java.lang.String |
upper(java.lang.String text)
Uppercase the specified text.
|
private long test1
public long test2
public boolean boolTest(boolean test)
test
- true
or false
.test
.public long getTest1()
public boolean isTest3()
true
as the value of variable test3
.true
.public java.lang.Long now()
public java.lang.Double random(double mult)
x
in the range
0 ≤ x < mult
if mult
is positive, or
0 ≥ x > mult
if mult
is negative.mult
- Multiplier to apply to a pseudo-random number x
in the range 0 ≤ x < 1.0
to achieve the
desired range.public java.lang.String lower(java.lang.String text)
text
- Text to be lowercased.text
in lowercase.public java.lang.String upper(java.lang.String text)
text
- Text to be uppercased.text
in uppercase.