Package org.apache.abdera.ext.opensearch

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


    Parser parser = Abdera.getNewParser();
   
    InputStream stream = OpenSearchTest.class.getResourceAsStream("/opensearch.xml");
    Document<Element> doc = parser.parse(stream);

    IntegerElement tr = doc.getRoot().getFirstChild(OpenSearchConstants.TOTAL_RESULTS_V10);
    assertNotNull(tr);
    assertEquals(tr.getValue(), 47);

    IntegerElement ipp = doc.getRoot().getFirstChild(OpenSearchConstants.ITEMS_PER_PAGE_V10);
    assertNotNull(ipp);
    assertEquals(ipp.getValue(), 1);

    IntegerElement si = doc.getRoot().getFirstChild(OpenSearchConstants.START_INDEX_V10);
    assertNotNull(si);
    assertEquals(si.getValue(), 1);
  }
View Full Code Here


    Parser parser = Abdera.getNewParser();
   
    InputStream stream = OpenSearchTest.class.getResourceAsStream("/opensearch.xml");
    Document<Element> doc = parser.parse(stream);

    IntegerElement tr = doc.getRoot().getFirstChild(OpenSearchConstants.TOTAL_RESULTS_V10);
    assertNotNull(tr);
    assertEquals(tr.getValue(), 47);

    IntegerElement ipp = doc.getRoot().getFirstChild(OpenSearchConstants.ITEMS_PER_PAGE_V10);
    assertNotNull(ipp);
    assertEquals(ipp.getValue(), 1);

    IntegerElement si = doc.getRoot().getFirstChild(OpenSearchConstants.START_INDEX_V10);
    assertNotNull(si);
    assertEquals(si.getValue(), 1);
  }
View Full Code Here

TOP

Related Classes of org.apache.abdera.ext.opensearch.IntegerElement

Copyright © 2018 www.massapicom. 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.