@Test public void testKL() { final LoggingFilter lf = new LoggingFilter(); Logger.getLogger(FieldDescriptor.class.getName()).setFilter(lf); assertTrue(lf.getCount() == 0); FieldProcessor<TestClassK> instanceK = new FieldProcessor(TestClassK.class); TestClassK testClassK = new TestClassK(); instanceK.processLinks(testClassK, mockUriInfo, mockRmc, mockRlcc); assertTrue(lf.getCount() == 0); FieldProcessor<TestClassL> instanceL = new FieldProcessor(TestClassL.class); TestClassL testClassL = new TestClassL(); instanceL.processLinks(testClassL, mockUriInfo, mockRmc, mockRlcc); assertTrue(lf.getCount() == 0); Logger.getLogger(FieldDescriptor.class.getName()).setFilter(null); }
void processLinks(T entity, UriInfo uriInfo, ResourceMappingContext rmc, ResourceLinkContributionContext rlcc) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo, rmc, rlcc); }
FieldProcessor { void processLinks(T entity, UriInfo uriInfo, ResourceMappingContext rmc, ResourceLinkContributionContext rlcc) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo, rmc, rlcc); } }
FieldProcessor { void processLinks(T entity, UriInfo uriInfo, ResourceMappingContext rmc, ResourceLinkContributionContext rlcc) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo, rmc, rlcc); } FieldProcessor(Class<T> c); }
FieldProcessor { void processLinks(T entity, UriInfo uriInfo, ResourceMappingContext rmc, ResourceLinkContributionContext rlcc) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo, rmc, rlcc); } FieldProcessor(Class<T> c);  }
FieldProcessor { void processLinks(T entity, UriInfo uriInfo, ResourceMappingContext rmc, ResourceLinkContributionContext rlcc) { Set<Object> processed = new HashSet<Object>(); Object resource = uriInfo.getMatchedResources().get(0); processLinks(entity, resource, entity, processed, uriInfo, rmc, rlcc); } FieldProcessor(Class<T> c);   }