Examples of TotalResults


Examples of org.apache.abdera.ext.opensearch.TotalResults

  public void testBasics()
  {
    InputStream stream = OpenSearchTest.class.getResourceAsStream("/opensearch.xml");
    Document<Element> doc = Parser.INSTANCE.parse(stream);

    TotalResults tr = doc.getRoot().getFirstChild(OpenSearchConstants.TOTAL_RESULTS);
    assertNotNull(tr);
    assertEquals(tr.getCount(), 47);

    ItemsPerPage ipp = doc.getRoot().getFirstChild(OpenSearchConstants.ITEMS_PER_PAGE);
    assertNotNull(ipp);
    assertEquals(ipp.getCount(), 1);
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.