@Test public void testConvertDateToString() { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, TEST_YEAR); calendar.set(Calendar.MONTH, TEST_MONTH); calendar.set(Calendar.DAY_OF_MONTH, TEST_DAY); calendar.set(Calendar.HOUR_OF_DAY, TEST_HOUR); calendar.set(Calendar.MINUTE, TEST_MINUTE); calendar.set(Calendar.SECOND, TEST_SECOND); calendar.set(Calendar.MILLISECOND, TEST_MILLIS); String result = DateUtils.convertDateToString(new DateTime(calendar)); Assert.assertEquals(EXPECTED_DATE_STAMP, result); }
public static String convertDateToString(DateTime date) { return DATE_TIME_FORMATTER.print(date); }
DateUtils { public static String convertDateToString(DateTime date) { return DATE_TIME_FORMATTER.print(date); } }
DateUtils { public static String convertDateToString(DateTime date) { return DATE_TIME_FORMATTER.print(date); } private  DateUtils(); }
DateUtils { public static String convertDateToString(DateTime date) { return DATE_TIME_FORMATTER.print(date); } private  DateUtils(); static String convertDateToString(DateTime date); static String convertSqlTimestampToString(Timestamp timestamp); static DateTime convertStringToDate(String date); static DateTime convertStringWithOffsetToDate(String date); }
DateUtils { public static String convertDateToString(DateTime date) { return DATE_TIME_FORMATTER.print(date); } private  DateUtils(); static String convertDateToString(DateTime date); static String convertSqlTimestampToString(Timestamp timestamp); static DateTime convertStringToDate(String date); static DateTime convertStringWithOffsetToDate(String date);  }