127128129130131132133134135136137
addUnit(new JustNow()); addUnit(new Millisecond()); addUnit(new Second()); addUnit(new Minute()); addUnit(new Hour()); addUnit(new Day()); addUnit(new Week()); addUnit(new Month()); addUnit(new Year()); addUnit(new Decade()); addUnit(new Century());
26272829303132
@Test public void testComparingOrder() throws Exception { TimeUnitComparator comparator = new TimeUnitComparator(); assertEquals(-1, comparator.compare(new Hour(), new Day())); }