@Test public void testGetCurrentDateWithInCorrectFormat() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); Assert.assertNotEquals(DateUtils.getCurrentDate(),dateFormat.format(new Date()).toString()); }
public static String getCurrentDate() { return dataFormat.get().format(new Date()); }
DateUtils { public static String getCurrentDate() { return dataFormat.get().format(new Date()); } }
DateUtils { public static String getCurrentDate() { return dataFormat.get().format(new Date()); }  }
DateUtils { public static String getCurrentDate() { return dataFormat.get().format(new Date()); }  static String getCurrentDate(); static String formatDate(Date date); }
DateUtils { public static String getCurrentDate() { return dataFormat.get().format(new Date()); }  static String getCurrentDate(); static String formatDate(Date date);  }