Package org.apache.lucene.facet.taxonomy

Examples of org.apache.lucene.facet.taxonomy.CategoryPath.clear()


    p2.clear();
    p2.add("hello");
    assertEquals(false, p1.hashCode()==p2.hashCode());
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("ho");
    assertEquals(false, p1.hashCode()==p2.hashCode());
  }
 
  @Test
View Full Code Here


    p2.add("hi");
    assertEquals(false, p1.hashCode(-1)==p2.hashCode(-1));
    p1.clear();
    p1.add("hello");
    p1.add("world");
    p2.clear();
    p2.add("hello");
    p2.add("world");
    assertEquals(p1.hashCode(-1), p2.hashCode(-1));
    p1.clear();
    p1.add("averylongcategoryname");
View Full Code Here

    assertEquals(p1.hashCode(-1), p2.hashCode(-1));
    p1.clear();
    p1.add("averylongcategoryname");
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("hi");
    assertEquals(p1.hashCode(-1), p2.hashCode(-1));
    p1.clear();
    p1.add("hi");
    p2.clear();
View Full Code Here

    p2.clear();
    p2.add("hi");
    assertEquals(p1.hashCode(-1), p2.hashCode(-1));
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("hello");
    assertEquals(false, p1.hashCode(-1)==p2.hashCode(-1));
    p1.clear();
    p1.add("hi");
    p2.clear();
View Full Code Here

    p2.clear();
    p2.add("hello");
    assertEquals(false, p1.hashCode(-1)==p2.hashCode(-1));
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("ho");
    assertEquals(false, p1.hashCode(-1)==p2.hashCode(-1));
   
    // Now move to testing prefixes:
    CategoryPath p = new CategoryPath();
View Full Code Here

    assertEquals(false, p1.longHashCode()==p2.longHashCode());
    // Build two paths separately, and compare them
    p1.clear();
    p1.add("hello");
    p1.add("world");
    p2.clear();
    p2.add("hello");
    p2.add("world");
    assertEquals(p1.longHashCode(), p2.longHashCode());
    // Check that comparison really don't look at old data which might
    // be stored in the array
View Full Code Here

    // be stored in the array
    p1.clear();
    p1.add("averylongcategoryname");
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("hi");
    assertEquals(p1.longHashCode(), p2.longHashCode());
    // Being of the same length is obviously not enough to be equal
    p1.clear();
    p1.add("hi");
View Full Code Here

    p2.add("hi");
    assertEquals(p1.longHashCode(), p2.longHashCode());
    // Being of the same length is obviously not enough to be equal
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("hello");
    assertEquals(false, p1.longHashCode()==p2.longHashCode());
    p1.clear();
    p1.add("hi");
    p2.clear();
View Full Code Here

    p2.clear();
    p2.add("hello");
    assertEquals(false, p1.longHashCode()==p2.longHashCode());
    p1.clear();
    p1.add("hi");
    p2.clear();
    p2.add("ho");
    assertEquals(false, p1.longHashCode()==p2.longHashCode());
  }
 
  @Test
View Full Code Here

    assertEquals(false, p1.longHashCode(-1)==p2.longHashCode(-1));
    // Build two paths separately, and compare them
    p1.clear();
    p1.add("hello");
    p1.add("world");
    p2.clear();
    p2.add("hello");
    p2.add("world");
    assertEquals(p1.longHashCode(-1), p2.longHashCode(-1));
    // Check that comparison really don't look at old data which might
    // be stored in the array
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.