@Test public void test_ensureClassesAreSorted() { StubClassLocator classLocator = new StubClassLocator(); classLocator.classesFound.add(String.class); classLocator.classesFound.add(JarFileClassLocator.class); classLocator.classesFound.add(LocalFileSystemClassLocator.class); List<Class> classes = classLocator.locate(null, "doesNotMatter"); assertEquals(Arrays.asList(JarFileClassLocator.class, LocalFileSystemClassLocator.class, String.class), classes); }
public List<Class> locate(URL url, String packageName) { return locate(url, Pattern.compile(packageName)); }
AbstractClassLocator implements ClassLocator { public List<Class> locate(URL url, String packageName) { return locate(url, Pattern.compile(packageName)); } }
AbstractClassLocator implements ClassLocator { public List<Class> locate(URL url, String packageName) { return locate(url, Pattern.compile(packageName)); }  }
AbstractClassLocator implements ClassLocator { public List<Class> locate(URL url, String packageName) { return locate(url, Pattern.compile(packageName)); }  List<Class> locate(URL url, String packageName); List<Class> locate(URL url, Pattern packageNamePattern); }
AbstractClassLocator implements ClassLocator { public List<Class> locate(URL url, String packageName) { return locate(url, Pattern.compile(packageName)); }  List<Class> locate(URL url, String packageName); List<Class> locate(URL url, Pattern packageNamePattern);  }