@Test public void testFailedSearch() { ClassPathSearch classPathSearch = new ClassPathSearch(); assertNull(classPathSearch.findImplementation(IFail.class, 200)); }
public <T, R extends T> Class<R> findImplementation(Class<T> theInterface) { return findImplementation(theInterface, classes.size()); }
ClassPathSearch { public <T, R extends T> Class<R> findImplementation(Class<T> theInterface) { return findImplementation(theInterface, classes.size()); } }
ClassPathSearch { public <T, R extends T> Class<R> findImplementation(Class<T> theInterface) { return findImplementation(theInterface, classes.size()); } ClassPathSearch(Class<?>... classesOfInterest); }
ClassPathSearch { public <T, R extends T> Class<R> findImplementation(Class<T> theInterface) { return findImplementation(theInterface, classes.size()); } ClassPathSearch(Class<?>... classesOfInterest); Class<R> findImplementation(Class<T> theInterface); @SuppressWarnings("unchecked") Class<R> findImplementation(Class<T> theInterface, int limit); }
ClassPathSearch { public <T, R extends T> Class<R> findImplementation(Class<T> theInterface) { return findImplementation(theInterface, classes.size()); } ClassPathSearch(Class<?>... classesOfInterest); Class<R> findImplementation(Class<T> theInterface); @SuppressWarnings("unchecked") Class<R> findImplementation(Class<T> theInterface, int limit);  }