Package org.eclipse.ecf.core.identity

Examples of org.eclipse.ecf.core.identity.ID.compareTo()


  public void testCompareToEqual() throws Exception {
    final ID id1 = createID();
    final ID id2 = createID();
    assertTrue(id1.compareTo(id2) == 0);
    assertTrue(id2.compareTo(id1) == 0);
  }

  public void testCompareToNotEqual() throws Exception {
    final ID id1 = createStringID("abcdefghijkl");
    final ID id2 = createStringID("abcdefghijklm");
View Full Code Here


  public void testCompareToNotEqual() throws Exception {
    final ID id1 = createStringID("abcdefghijkl");
    final ID id2 = createStringID("abcdefghijklm");
    assertTrue(id1.compareTo(id2) < 0);
    assertTrue(id2.compareTo(id1) > 0);
  }

  public void testGetNamespace() throws Exception {
    final ID id = createID();
    final Namespace ns = id.getNamespace();
View Full Code Here

  public void testCompareToEqual() throws Exception {
    final ID id1 = createID();
    final ID id2 = createID();
    assertTrue(id1.compareTo(id2) == 0);
    assertTrue(id2.compareTo(id1) == 0);
  }

  public void testCompareToNotEqual() throws Exception {
    final ID id1 = createLongID(0);
    final ID id2 = createLongID(1);
View Full Code Here

  public void testCompareToNotEqual() throws Exception {
    final ID id1 = createLongID(0);
    final ID id2 = createLongID(1);
    assertTrue(id1.compareTo(id2) < 0);
    assertTrue(id2.compareTo(id1) > 0);
  }

  public void testGetNamespace() throws Exception {
    final ID id = createID();
    final Namespace ns = id.getNamespace();
View Full Code Here

  public void testCompareToNotEqual() throws Exception {
    final ID id1 = createID();
    final ID id2 = createID();
    assertTrue(id1.compareTo(id2) != 0);
    assertTrue(id2.compareTo(id1) != 0);
  }

  public void testGetNamespace() throws Exception {
    final ID id = createID();
    final Namespace ns = id.getNamespace();
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.