@Test public void shouldIgnoreCaseWhenJarSchemeGiven() { LocationScanner scanner = new ScannerRegistry().getScanner("jAr"); assertThat(scanner, is(not(nullValue()))); assertThat(JarLocationScanner.class.isAssignableFrom(scanner.getClass()), is(true)); }
public LocationScanner getScanner(String scheme) { notNullOrEmpty(scheme, "scheme"); return this.scanners.get(scheme.toLowerCase()); }
ScannerRegistry { public LocationScanner getScanner(String scheme) { notNullOrEmpty(scheme, "scheme"); return this.scanners.get(scheme.toLowerCase()); } }
ScannerRegistry { public LocationScanner getScanner(String scheme) { notNullOrEmpty(scheme, "scheme"); return this.scanners.get(scheme.toLowerCase()); } ScannerRegistry(); }
ScannerRegistry { public LocationScanner getScanner(String scheme) { notNullOrEmpty(scheme, "scheme"); return this.scanners.get(scheme.toLowerCase()); } ScannerRegistry(); LocationScanner getScanner(String scheme); boolean supports(String scheme); void register(String scheme, LocationScanner scanner); void unregister(String scheme); }
ScannerRegistry { public LocationScanner getScanner(String scheme) { notNullOrEmpty(scheme, "scheme"); return this.scanners.get(scheme.toLowerCase()); } ScannerRegistry(); LocationScanner getScanner(String scheme); boolean supports(String scheme); void register(String scheme, LocationScanner scanner); void unregister(String scheme); static final String JAR_SCHEME; static final String FILE_SCHEME; }