@Test public void testProcessLinksWithFields() { System.out.println("Links from field values"); RefProcessor<TestClassE> instance = new RefProcessor(TestClassE.class); TestClassE testClass = new TestClassE("10"); instance.processLinks(testClass, mockUriInfo); assertEquals("widgets/10", testClass.link); }
public void processLinks(T entity, UriInfo uriInfo) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo); }
RefProcessor { public void processLinks(T entity, UriInfo uriInfo) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo); } }
RefProcessor { public void processLinks(T entity, UriInfo uriInfo) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo); } RefProcessor(Class<T> c); }
RefProcessor { public void processLinks(T entity, UriInfo uriInfo) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo); } RefProcessor(Class<T> c); void processLinks(T entity, UriInfo uriInfo); }
RefProcessor { public void processLinks(T entity, UriInfo uriInfo) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo); } RefProcessor(Class<T> c); void processLinks(T entity, UriInfo uriInfo);  }