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

Examples of org.apache.ace.client.repository.stateful.impl.LogEventComparator


* the fix, it no longer fails.
*/
public class ACE308Test {
    @Test( groups = { TestUtils.UNIT } )
    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


* For this specific case, it would fail. After the fix, it no longer fails.
*/
public class ACE308Test {
    @Test(groups = { TestUtils.UNIT })
    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

Related Classes of org.apache.ace.client.repository.stateful.impl.LogEventComparator

Copyright © 2018 www.massapicom. 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.