Package org.apache.lucene.facet.taxonomy

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


 
  @Test
  public void testLastComponent() {
    CategoryPath p = new CategoryPath(1000,1000);
    // When the category is empty, we expect a null
    assertNull(p.lastComponent());
    for (int i=0; i<=100; i++) {
      String num = Integer.toString(i);
      p.add(num);
      assertEquals(num, p.lastComponent());
    }
View Full Code Here


    // When the category is empty, we expect a null
    assertNull(p.lastComponent());
    for (int i=0; i<=100; i++) {
      String num = Integer.toString(i);
      p.add(num);
      assertEquals(num, p.lastComponent());
    }
  }
 
  @Test
  public void testGetComponent() {
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.