Package org.apache.ace.client.repository.stateful.impl

Examples of org.apache.ace.client.repository.stateful.impl.LogEventComparator.compare()


    public void testLogEvents() {
      LogEventComparator c = new LogEventComparator();
      LogEvent left = new LogEvent("t", 1, 1, -1000000000000000000L, 0, null);
      LogEvent right = new LogEvent("t", 1, 1, 1, 0, null);
      Assert.assertTrue((left.getTime() - right.getTime()) < 0L);
      Assert.assertTrue(c.compare(left, right) < 0L);
    }
}
View Full Code Here


    public void testLogEvents() {
        LogEventComparator c = new LogEventComparator();
        Event left = new Event("t", 1, 1, -1000000000000000000L, 0);
        Event right = new Event("t", 1, 1, 1, 0);
        Assert.assertTrue((left.getTime() - right.getTime()) < 0L);
        Assert.assertTrue(c.compare(left, right) < 0L);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.