Examples of linkRel()


Examples of com.gistlabs.mechanize.document.json.hypermedia.JsonLink.linkRel()

    JsonNode one = json.find("rel-is-name");
    List<JsonLink> links = finder.findOn(one);
    assertEquals(1, links.size());
   
    JsonLink hrefLink = links.get(0);
    assertEquals("rel-is-name", hrefLink.linkRel());
  }
 
  @Test
  public void testLinkRelIsRel() {
    JsonNode one = json.find("rel-is-rel");
View Full Code Here

Examples of com.gistlabs.mechanize.document.json.hypermedia.JsonLink.linkRel()

    JsonNode one = json.find("rel-is-rel");
    List<JsonLink> links = finder.findOn(one);
    assertEquals(1, links.size());
   
    JsonLink hrefLink = links.get(0);
    assertEquals("self", hrefLink.linkRel());
  }
 
  @Test
  public void testLinkRelIsPrefix() {
    JsonNode one = json.find("rel-is-prefix");
View Full Code Here

Examples of com.gistlabs.mechanize.document.json.hypermedia.JsonLink.linkRel()

    JsonNode one = json.find("rel-is-prefix");
    List<JsonLink> links = finder.findOn(one);
    assertEquals(1, links.size());
   
    JsonLink hrefLink = links.get(0);
    assertEquals("prefix", hrefLink.linkRel());
  }
 
  @Test
  public void testNestedLinksDepthOne() {
    JsonNode node = json.find("nested-links");
View Full Code Here

Examples of com.gistlabs.mechanize.document.json.hypermedia.JsonLink.linkRel()

    JsonNode node = json.find("nested-links");
    List<JsonLink> links = finder.findOn(node);
    assertEquals(1, links.size());
   
    JsonLink hrefLink = links.get(0);
    assertEquals("self", hrefLink.linkRel());
  }
 
  @Test
  public void testNestedLinksDepthChildren() {
    JsonNode node = json.find("nested-links");
View Full Code Here

Examples of com.gistlabs.mechanize.document.json.hypermedia.JsonLink.linkRel()

    JsonNode node = json.find("nested-links");
    List<JsonLink> links = finder.findWithChildren(node);
    assertEquals(3, links.size());
   
    JsonLink next = links.get(1); // this index is dependent on ordering of children
    assertEquals("next", next.linkRel());
  }
 
  @Test
  public void testNestedLinksRecursive() {
    JsonNode node = json.find("nested-links");
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.