@Test public void linuxUptimeStyle() throws Exception { Assert.assertEquals("8 days, 08:09:27", PeriodFormatterUtil.toLinuxUptimeStyleString(UPTIME_LESS_THAN_9_DAYS)); Assert.assertEquals("2 days, 12:02:50", PeriodFormatterUtil.toLinuxUptimeStyleString(UPTIME_LESS_THAN_3_DAYS)); Assert.assertEquals("1 day, 22:24:48", PeriodFormatterUtil.toLinuxUptimeStyleString(UPTIME_LESS_THAN_2_DAYS)); Assert.assertEquals("0 days, 20:00:56", PeriodFormatterUtil.toLinuxUptimeStyleString(UPTIME_LESS_THAN_1_DAY)); Assert.assertEquals("0 days, 00:00:53", PeriodFormatterUtil.toLinuxUptimeStyleString(UPTIME_53_SECS)); }
public static String toLinuxUptimeStyleString(long durationInMillis) { return getLinuxUptimeStyle().print(createDayHourMinSecPeriod(durationInMillis)); }
PeriodFormatterUtil { public static String toLinuxUptimeStyleString(long durationInMillis) { return getLinuxUptimeStyle().print(createDayHourMinSecPeriod(durationInMillis)); } }
PeriodFormatterUtil { public static String toLinuxUptimeStyleString(long durationInMillis) { return getLinuxUptimeStyle().print(createDayHourMinSecPeriod(durationInMillis)); }  }
PeriodFormatterUtil { public static String toLinuxUptimeStyleString(long durationInMillis) { return getLinuxUptimeStyle().print(createDayHourMinSecPeriod(durationInMillis)); }  static PeriodType getDayHourMinSecPeriodType(); static Period createDayHourMinSecPeriod(long durationInMillis); static PeriodFormatter getLinuxUptimeStyle(); static PeriodFormatter getStandardUptimeStyle(); static String toLinuxUptimeStyleString(long durationInMillis); static String toStandardUptimeStyleString(long durationInMillis); }
PeriodFormatterUtil { public static String toLinuxUptimeStyleString(long durationInMillis) { return getLinuxUptimeStyle().print(createDayHourMinSecPeriod(durationInMillis)); }  static PeriodType getDayHourMinSecPeriodType(); static Period createDayHourMinSecPeriod(long durationInMillis); static PeriodFormatter getLinuxUptimeStyle(); static PeriodFormatter getStandardUptimeStyle(); static String toLinuxUptimeStyleString(long durationInMillis); static String toStandardUptimeStyleString(long durationInMillis);  }