@Test public void testPageLinks() { String basePath = "/"+PAGE_ID; String parentPath = "/"+PAGE_PARENT; PageLinks links = pageMapper.computePageLinks(basePath, parentPath); assertNotNull(links); assertEquals(basePath, links.getSelf()); assertEquals(basePath+"/content", links.getContent()); assertEquals(parentPath, links.getParent()); }
public PageLinks computePageLinks(String basePath, String parentPath) { PageLinks pageLinks = new PageLinks(); pageLinks.setContent(basePath + "/content"); pageLinks.setParent(parentPath); pageLinks.setSelf(basePath); return pageLinks; }
PageMapper { public PageLinks computePageLinks(String basePath, String parentPath) { PageLinks pageLinks = new PageLinks(); pageLinks.setContent(basePath + "/content"); pageLinks.setParent(parentPath); pageLinks.setSelf(basePath); return pageLinks; } }
PageMapper { public PageLinks computePageLinks(String basePath, String parentPath) { PageLinks pageLinks = new PageLinks(); pageLinks.setContent(basePath + "/content"); pageLinks.setParent(parentPath); pageLinks.setSelf(basePath); return pageLinks; }  }
PageMapper { public PageLinks computePageLinks(String basePath, String parentPath) { PageLinks pageLinks = new PageLinks(); pageLinks.setContent(basePath + "/content"); pageLinks.setParent(parentPath); pageLinks.setSelf(basePath); return pageLinks; }  Page convert(PageEntity page); Page convert(UriBuilder baseUriBuilder, String apiId, PageEntity page); PageLinks computePageLinks(String basePath, String parentPath); }
PageMapper { public PageLinks computePageLinks(String basePath, String parentPath) { PageLinks pageLinks = new PageLinks(); pageLinks.setContent(basePath + "/content"); pageLinks.setParent(parentPath); pageLinks.setSelf(basePath); return pageLinks; }  Page convert(PageEntity page); Page convert(UriBuilder baseUriBuilder, String apiId, PageEntity page); PageLinks computePageLinks(String basePath, String parentPath);  }