### Question:
DateOperation { public static String getStringDate(Date date) { Calendar calendar = Calendar.getInstance(TimeZone.getDefault()); int month = getMonth(date); StringBuilder stringBuilder = new StringBuilder(); calendar.setTime(date); stringBuilder.append(calendar.get(Calendar.DAY_OF_MONTH)); stringBuilder.append("-"); stringBuilder.append(month); stringBuilder.append("-"); stringBuilder.append(calendar.get(Calendar.YEAR)); return stringBuilder.toString(); }  static String getStringDate(Date date); static String getStringDate(long milis); static Date getCurrentDateExact(); static Date getCurrentDate(); static String getCurrentDateAsString(); static Date getSpecificDate(int year, int month, int day); static int getCurrentYear(); static int getCurrentMonth(); static int getCurrentDay(); static int getYear(Date date); static int getMonth(Date date); static int getDay(Date date); static int[] getYesterDayMetric(Date date); static Date getYesterday(Date date); static int[] getPreviousWeekMetric(Date date); static int[] getPrevMonthMetric(Date date);  }### Answer:
@Test public void getStringDate() { String s = DateOperation.getCurrentDateAsString(); assertEquals("10-8-2019", s); }