void () { assertEquals("0 ms", NlsMessages.formatDuration(0)); assertEquals("1 ms", NlsMessages.formatDuration(1)); assertEquals("1 sec", NlsMessages.formatDuration(1000)); assertEquals("3 wks, 3 days, 20 hr, 31 min, 23 sec, 647 ms", NlsMessages.formatDuration(Integer.MAX_VALUE)); assertEquals("11 wks, 5 days, 17 hr, 24 min, 43 sec, 647 ms", NlsMessages.formatDuration(Integer.MAX_VALUE + 5000000000L)); assertEquals("1 min, 0 sec, 100 ms", NlsMessages.formatDuration(60100)); assertEquals("1 sec, 234 ms", NlsMessages.formatDuration(1234)); assertEquals("12 sec, 345 ms", NlsMessages.formatDuration(12345)); assertEquals("2 min, 3 sec, 456 ms", NlsMessages.formatDuration(123456)); assertEquals("20 min, 34 sec, 567 ms", NlsMessages.formatDuration(1234567)); assertEquals("3 hr, 25 min, 45 sec, 678 ms", NlsMessages.formatDuration(12345678)); assertEquals("1 day, 10 hr, 17 min, 36 sec, 789 ms", NlsMessages.formatDuration(123456789)); assertEquals("2 wks, 0 days, 6 hr, 56 min, 7 sec, 890 ms", NlsMessages.formatDuration(1234567890)); assertEquals("5 wks, 4 days, 2 hr, 30 min, 6 sec, 101 ms", NlsMessages.formatDuration(3378606101L)); }