Search in sources :

Example 6 with UserActiveInterval

use of nl.tudelft.watchdog.core.logic.interval.intervaltypes.UserActiveInterval in project watchdog by TestRoots.

the class IntervalComparisonTest method testComparisonEqualIntervalsSameObject.

@Test
public void testComparisonEqualIntervalsSameObject() {
    UserActiveInterval interval = new UserActiveInterval(new Date());
    interval.close();
    assertEquals(0, interval.compareTo(interval));
}
Also used : UserActiveInterval(nl.tudelft.watchdog.core.logic.interval.intervaltypes.UserActiveInterval) Date(java.util.Date) Test(org.junit.Test)

Aggregations

Date (java.util.Date)6 UserActiveInterval (nl.tudelft.watchdog.core.logic.interval.intervaltypes.UserActiveInterval)6 Test (org.junit.Test)6 IDEOpenInterval (nl.tudelft.watchdog.core.logic.interval.intervaltypes.IDEOpenInterval)2