Package org.jboss.resteasy.links.RESTServiceDiscovery

Examples of org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink


    Assert.assertEquals("bar", book.getAuthor());
    RESTServiceDiscovery links = book.getRest();
    Assert.assertNotNull(links);
    Assert.assertEquals(1, links.size());
    // self
    AtomLink atomLink = links.getLinkForRel("self");
    Assert.assertNotNull(atomLink);
    Assert.assertEquals(url+"/book/foo", atomLink.getHref());
  }
View Full Code Here


  private void checkBook(IdBook book, String relativeUrl) {
    Assert.assertNotNull(book);
    RESTServiceDiscovery links = book.getRest();
    Assert.assertNotNull(links);
    Assert.assertEquals(1, links.size());
    AtomLink link = links.get(0);
    Assert.assertEquals("self", link.getRel());
    Assert.assertEquals(url + relativeUrl, link.getHref());
  }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.links.RESTServiceDiscovery.AtomLink

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.