@Test public void testHumanDuration() throws Exception { assertThat(humanDuration(standardSeconds(0)), is("0 seconds")); assertThat(humanDuration(standardSeconds(1)), is("1 second")); assertThat(humanDuration(standardSeconds(2)), is("2 seconds")); assertThat(humanDuration(standardSeconds(59)), is("59 seconds")); assertThat(humanDuration(standardSeconds(60)), is("1 minute")); assertThat(humanDuration(standardMinutes(1)), is("1 minute")); assertThat(humanDuration(standardMinutes(2)), is("2 minutes")); assertThat(humanDuration(standardMinutes(59)), is("59 minutes")); assertThat(humanDuration(standardMinutes(60)), is("1 hour")); assertThat(humanDuration(standardHours(1)), is("1 hour")); assertThat(humanDuration(standardHours(2)), is("2 hours")); assertThat(humanDuration(standardHours(23)), is("23 hours")); assertThat(humanDuration(standardHours(24)), is("1 day")); assertThat(humanDuration(standardDays(1)), is("1 day")); assertThat(humanDuration(standardDays(2)), is("2 days")); assertThat(humanDuration(standardDays(365)), is("365 days")); assertThat(humanDuration(standardDays(4711)), is("4711 days")); }
public static String humanDuration(final long millis) { return humanDuration(Duration.millis(millis)); }
Output { public static String humanDuration(final long millis) { return humanDuration(Duration.millis(millis)); } }
Output { public static String humanDuration(final long millis) { return humanDuration(Duration.millis(millis)); }  }
Output { public static String humanDuration(final long millis) { return humanDuration(Duration.millis(millis)); }  static String humanDuration(final long millis); static String humanDuration(final Duration dur); static Table table(final PrintStream out); static JobStatusTable jobStatusTable(final PrintStream out, final boolean full); static String shortHostname(final String host); static String formatHostname(final boolean full, final String host); }
Output { public static String humanDuration(final long millis) { return humanDuration(Duration.millis(millis)); }  static String humanDuration(final long millis); static String humanDuration(final Duration dur); static Table table(final PrintStream out); static JobStatusTable jobStatusTable(final PrintStream out, final boolean full); static String shortHostname(final String host); static String formatHostname(final boolean full, final String host);  }