@Test void parseShouldSupportStartingSpaces() { assertThat(DurationParser.parse(" 2 minutes")) .isEqualTo(Duration.ofMinutes(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);  }