@Test void parseShouldUseSpecifiedDefaultUnit() { assertThat(DurationParser.parse("2", ChronoUnit.SECONDS)) .isEqualTo(Duration.ofSeconds(2)); }
public static Duration parse(String rawString) throws NumberFormatException { return parse(rawString, ChronoUnit.MILLIS); }
DurationParser { public static Duration parse(String rawString) throws NumberFormatException { return parse(rawString, ChronoUnit.MILLIS); } }
DurationParser { public static Duration parse(String rawString) throws NumberFormatException { return parse(rawString, ChronoUnit.MILLIS); } private  DurationParser(); }
DurationParser { public static Duration parse(String rawString) throws NumberFormatException { return parse(rawString, ChronoUnit.MILLIS); } private  DurationParser(); static Duration parse(String rawString); static Duration parse(String rawString, ChronoUnit defaultUnit); }
DurationParser { public static Duration parse(String rawString) throws NumberFormatException { return parse(rawString, ChronoUnit.MILLIS); } private  DurationParser(); static Duration parse(String rawString); static Duration parse(String rawString, ChronoUnit defaultUnit);  }