Examples of AdaptiveMain


Examples of org.apache.lucene.facet.example.adaptive.AdaptiveMain

*/
public class TestAdaptiveExample extends LuceneTestCase {
 
  @Test
  public void testAdaptive () throws Exception {
    ExampleResult res = new AdaptiveMain().runSample();
    assertNotNull("Null result!", res);
    assertNotNull("Null facet result!", res.getFacetResults());
    assertEquals("Wrong number of results!",1, res.getFacetResults().size());
    assertEquals("Wrong number of facets!",3, res.getFacetResults().get(0).getNumValidDescendants());
  }
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.