@Test public void testArray() { System.out.println("Array"); RefProcessor<TestClassE[]> instance = new RefProcessor(TestClassE[].class); TestClassE item1 = new TestClassE("10"); TestClassE item2 = new TestClassE("20"); TestClassE array[] = {item1, item2}; instance.processLinks(array, mockUriInfo); assertEquals("widgets/10", array[0].link); assertEquals("widgets/20", array[1].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);  }