DateFormat df = DateFormat.getDateTimeInstance();
AttributedCharacterIterator acit = null;
Calendar cal = Calendar.getInstance();
try {
acit = df.formatToCharacterIterator(cal);
if (acit == null) {
errln("FAIL: null AttributedCharacterIterator returned by formatToCharacterIterator(Calendar)");
}
} catch (IllegalArgumentException iae) {
errln("FAIL: Calendar must be accepted by formatToCharacterIterator");