public void testDateNormalization() { assertEquals(dateStrings.length, dateAnswers.length); for (int i = 0; i < dateStrings.length; i++) { ISODateInstance d = new ISODateInstance(dateStrings[i]); assertEquals("Testing " + dateStrings[i], dateAnswers[i], d.toString()); } }
/** For testing only */ public static void main(String[] args) { Properties props = StringUtils.argsToProperties(args); String dateProperty = props.getProperty("date"); if (dateProperty != null) { ISODateInstance d = new ISODateInstance(dateProperty); System.out.println(dateProperty + " processed as " + d.toString()); } }