Package org.gitective.core.stat

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


        TimeZone.getDefault()));

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


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

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

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

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

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