Package org.apache.lucene.facet.taxonomy

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


  @Test
  public void testCompareTo() {
    CategoryPath p = new CategoryPath("a/b/c/d", '/');
    CategoryPath pother = new CategoryPath("a/b/c/d", '/');
    assertTrue(pother.compareTo(p) == 0);
    pother = new CategoryPath("", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b_/c/d", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c", '/');
View Full Code Here


  public void testCompareTo() {
    CategoryPath p = new CategoryPath("a/b/c/d", '/');
    CategoryPath pother = new CategoryPath("a/b/c/d", '/');
    assertTrue(pother.compareTo(p) == 0);
    pother = new CategoryPath("", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b_/c/d", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b/c/e", '/');
View Full Code Here

    CategoryPath pother = new CategoryPath("a/b/c/d", '/');
    assertTrue(pother.compareTo(p) == 0);
    pother = new CategoryPath("", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b_/c/d", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b/c/e", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c//e", '/');
View Full Code Here

    pother = new CategoryPath("", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b_/c/d", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b/c/e", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c//e", '/');
    assertTrue(pother.compareTo(p) < 0);
  }
View Full Code Here

    pother = new CategoryPath("a/b_/c/d", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b/c/e", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c//e", '/');
    assertTrue(pother.compareTo(p) < 0);
  }
 
  private static class CS implements CharSequence {
View Full Code Here

    pother = new CategoryPath("a/b/c", '/');
    assertTrue(pother.compareTo(p) < 0);
    pother = new CategoryPath("a/b/c/e", '/');
    assertTrue(pother.compareTo(p) > 0);
    pother = new CategoryPath("a/b/c//e", '/');
    assertTrue(pother.compareTo(p) < 0);
  }
 
  private static class CS implements CharSequence {
    public CS(String s) {
      this.ca = new char[s.length()];
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.