Package com.gistlabs.mechanize.document.json

Examples of com.gistlabs.mechanize.document.json.JsonDocument.findAll()


  public void testTwitterJson() {
    addPageRequest("GET", "http://test.com", getClass().getResourceAsStream("twitter.json"));
    JsonDocument page = agent().get("http://test.com");
    assertNotNull(page);
    assertEquals(JsonDocument.class, page.getClass());
    List<? extends Node> users = page.findAll("user");
    assertEquals(17, users.size());
  }
}
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.