@Test public void testKL() { final LoggingFilter lf = new LoggingFilter(); Logger.getLogger(FieldDescriptor.class.getName()).setFilter(lf); assertTrue(lf.getCount() == 0); RefProcessor<TestClassK> instanceK = new RefProcessor(TestClassK.class); TestClassK testClassK = new TestClassK(); instanceK.processLinks(testClassK, mockUriInfo); assertTrue(lf.getCount() == 0); RefProcessor<TestClassL> instanceL = new RefProcessor(TestClassL.class); TestClassL testClassL = new TestClassL(); instanceL.processLinks(testClassL, mockUriInfo); assertTrue(lf.getCount() == 0); Logger.getLogger(FieldDescriptor.class.getName()).setFilter(null); }
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);  }