@Test public void testCondition() { System.out.println("Condition"); RefProcessor<ConditionalLinkBean> instance = new RefProcessor(ConditionalLinkBean.class); ConditionalLinkBean testClass = new ConditionalLinkBean(); instance.processLinks(testClass, mockUriInfo); assertEquals("/application/resources/name", testClass.uri1); assertEquals(null, testClass.uri2); }
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);  }