@Test public void testComputedProperty() { System.out.println("Computed property"); RefProcessor<TestClassH> instance = new RefProcessor(TestClassH.class); TestClassH testClass = new TestClassH(); instance.processLinks(testClass, mockUriInfo); assertEquals("/application/resources/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);  }