public void testCompareNotNullAfter() { Event e1 = new Event("TEST", getUid()); e1.setInterval(ivalFactory.getInstance(5L, AbsoluteTimeGranularity.DAY)); Event e2 = new Event("TEST", getUid()); e2.setInterval(ivalFactory.getInstance(4L, AbsoluteTimeGranularity.DAY)); assertEquals(1, comp.compare(e1, e2)); }
public void testCompareAllNull() { Event e1 = new Event("TEST", getUid()); e1.setInterval(ivalFactory.getInstance()); Event e2 = new Event("TEST", getUid()); e2.setInterval(ivalFactory.getInstance()); assertEquals(0, comp.compare(e1, e2)); }