@Test public void verifySubResources() throws Exception { LinkableInfo result = tested.getLinkableInfo("dummy.root.resource.get"); assertEquals("dummy.root.resource.get", result.getId()); assertEquals("GET", result.getHttpMethod()); assertEquals("/root", result.getMethodPath()); result = tested.getLinkableInfo("dummy.sub.resource.get"); assertEquals("dummy.sub.resource.get", result.getId()); assertEquals("GET", result.getHttpMethod()); assertEquals("/root/{id}", result.getMethodPath()); }
@Override public LinkableInfo getLinkableInfo(String link) { LinkableInfo linkableInfo = linkableMapping.get(link); Validate.notNull(linkableInfo, "Invalid link: " + link); return linkableInfo; }
DefaultHateoasContext implements HateoasContext { @Override public LinkableInfo getLinkableInfo(String link) { LinkableInfo linkableInfo = linkableMapping.get(link); Validate.notNull(linkableInfo, "Invalid link: " + link); return linkableInfo; } }
DefaultHateoasContext implements HateoasContext { @Override public LinkableInfo getLinkableInfo(String link) { LinkableInfo linkableInfo = linkableMapping.get(link); Validate.notNull(linkableInfo, "Invalid link: " + link); return linkableInfo; }  }
DefaultHateoasContext implements HateoasContext { @Override public LinkableInfo getLinkableInfo(String link) { LinkableInfo linkableInfo = linkableMapping.get(link); Validate.notNull(linkableInfo, "Invalid link: " + link); return linkableInfo; }  @Override void mapClass(Class<?> clazz); @Override LinkableInfo getLinkableInfo(String link); @Override String toString(); boolean isInitialized(Class<?> clazz); }
DefaultHateoasContext implements HateoasContext { @Override public LinkableInfo getLinkableInfo(String link) { LinkableInfo linkableInfo = linkableMapping.get(link); Validate.notNull(linkableInfo, "Invalid link: " + link); return linkableInfo; }  @Override void mapClass(Class<?> clazz); @Override LinkableInfo getLinkableInfo(String link); @Override String toString(); boolean isInitialized(Class<?> clazz);  }