private class DateFormat.TestCase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
newBuf
Input sequence of characters after the autocompletion mechanism has
worked in it.
|
private java.lang.String |
oldBuf
Input sequence of characters entered by one in a year part of a date
field.
|
private java.lang.Integer |
year
The year that input sequence should be converted to.
|
| Constructor and Description |
|---|
TestCase(java.lang.String oldBuf,
java.lang.String newBuf,
java.lang.Integer year)
Construct an instance of a test case with all data needed to test
the year autocompletion and its string-to-number conversion.
|
private java.lang.String newBuf
private java.lang.String oldBuf
private java.lang.Integer year
public TestCase(java.lang.String oldBuf,
java.lang.String newBuf,
java.lang.Integer year)
oldBuf - Input sequence of characters entered by one in a year part
of a date field. The '_' symbol in this sequence means an
empty placeholder.newBuf - Input sequence of characters after the autocompletion
mechanism has worked in it. The '_' symbol in this sequence
means an empty placeholder.year - The year that input sequence should be converted to.
null means an invalid year.