@Test(expected = ParseException.class) public void shouldFailParsingForInvalidFormat() throws Exception { new JodaFormatter().parsePeriod("five months").getMonths(); }
public Period parsePeriod(String intervalString) { return parse(intervalString, Locale.getDefault()); }
JodaFormatter { public Period parsePeriod(String intervalString) { return parse(intervalString, Locale.getDefault()); } }
JodaFormatter { public Period parsePeriod(String intervalString) { return parse(intervalString, Locale.getDefault()); } JodaFormatter(); }
JodaFormatter { public Period parsePeriod(String intervalString) { return parse(intervalString, Locale.getDefault()); } JodaFormatter(); Period parse(String intervalString, Locale locale); Period parsePeriod(String intervalString); String formatPeriod(Period period); DateTime parseDateTime(String isoDateTime); String formatDateTime(DateTime dateTime); }
JodaFormatter { public Period parsePeriod(String intervalString) { return parse(intervalString, Locale.getDefault()); } JodaFormatter(); Period parse(String intervalString, Locale locale); Period parsePeriod(String intervalString); String formatPeriod(Period period); DateTime parseDateTime(String isoDateTime); String formatDateTime(DateTime dateTime);  }