DateUtils { public static String dateTimeNow() { final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss"); final Date date = new Date(); return dateFormat.format(date); }  static String today(); static String todayCSV(); static String timeNow(); static String dateTimeNow();  }
@Test void shouldGetDateTimeNow() { assertTrue(DateUtils.dateTimeNow().matches("[0-9]{4}[-][0-9]{2}[-][0-9]{2}[-][0-9]{2}[-][0-9]{2}[-][0-9]{2}")); }