private static class date.TestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private date |
date
The date instance to test.
|
private int |
dd
The day of month to compare against.
|
private java.lang.String |
fmt
The format in which to generate output,
null for
'export' format. |
private int |
mm
The month to compare against.
|
private java.lang.String |
result
The resulting formatted output string to match to the testcase.
|
private int |
ww
The weekday to compare against.
|
private int |
yy
The year to compare against.
|
Modifier | Constructor and Description |
---|---|
private |
TestCase(date date,
java.lang.String result,
java.lang.String fmt,
int mm,
int dd,
int ww,
int yy)
Construct an instance of a test case with all data needed to test
the passed instance of
date . |
Modifier and Type | Method and Description |
---|---|
private boolean |
test()
Run the test.
|
java.lang.String |
toString()
Renders this instance as a string.
|
private date date
private java.lang.String result
private int mm
private int dd
private int ww
private int yy
private java.lang.String fmt
null
for
'export' format.private TestCase(date date, java.lang.String result, java.lang.String fmt, int mm, int dd, int ww, int yy)
date
.date
- The instance to test.result
- The result from the string formatting functions.fmt
- The Progress compatible format string to use or
null
for export format.mm
- The month that the instance should report.dd
- The day of month that the instance should report.ww
- The weekday that the instance should report.yy
- The year that the instance should report.private boolean test()
true
if the created date's exported string
matches the expected result.public java.lang.String toString()
toString
in class java.lang.Object