@Test(expected = IllegalArgumentException.class) public void should_throw_exception_when_parameter_is_not_a_date() { DateAdapter.parseDate("not_a_date"); }
static Date parseDate(String dateToParse) { try { return TEAMCITY_DATE_FORMAT.parse(dateToParse); } catch (ParseException e) { throw new IllegalArgumentException(e); } }
DateAdapter { static Date parseDate(String dateToParse) { try { return TEAMCITY_DATE_FORMAT.parse(dateToParse); } catch (ParseException e) { throw new IllegalArgumentException(e); } } }
DateAdapter { static Date parseDate(String dateToParse) { try { return TEAMCITY_DATE_FORMAT.parse(dateToParse); } catch (ParseException e) { throw new IllegalArgumentException(e); } } private  DateAdapter(); }
DateAdapter { static Date parseDate(String dateToParse) { try { return TEAMCITY_DATE_FORMAT.parse(dateToParse); } catch (ParseException e) { throw new IllegalArgumentException(e); } } private  DateAdapter();  }
DateAdapter { static Date parseDate(String dateToParse) { try { return TEAMCITY_DATE_FORMAT.parse(dateToParse); } catch (ParseException e) { throw new IllegalArgumentException(e); } } private  DateAdapter();   }