Package org.gitective.core.stat

Examples of org.gitective.core.stat.LatestComparator.compare()


    user2.include(commit, new PersonIdent("b", "c", new Date(2000),
        TimeZone.getDefault()));

    LatestComparator comparator = new LatestComparator();
    assertEquals(0, comparator.compare(user1, user1));
    assertEquals(0, comparator.compare(user2, user2));
    assertTrue(comparator.compare(user2, user1) < 0);
    assertTrue(comparator.compare(user1, user2) > 0);
  }
}
View Full Code Here


    user2.include(commit, new PersonIdent("b", "c", new Date(2000),
        TimeZone.getDefault()));

    LatestComparator comparator = new LatestComparator();
    assertEquals(0, comparator.compare(user1, user1));
    assertEquals(0, comparator.compare(user2, user2));
    assertTrue(comparator.compare(user2, user1) < 0);
    assertTrue(comparator.compare(user1, user2) > 0);
  }
}
View Full Code Here

        TimeZone.getDefault()));

    LatestComparator comparator = new LatestComparator();
    assertEquals(0, comparator.compare(user1, user1));
    assertEquals(0, comparator.compare(user2, user2));
    assertTrue(comparator.compare(user2, user1) < 0);
    assertTrue(comparator.compare(user1, user2) > 0);
  }
}
View Full Code Here

    LatestComparator comparator = new LatestComparator();
    assertEquals(0, comparator.compare(user1, user1));
    assertEquals(0, comparator.compare(user2, user2));
    assertTrue(comparator.compare(user2, user1) < 0);
    assertTrue(comparator.compare(user1, user2) > 0);
  }
}
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.