@Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionWhenEmptySchemeGiven() { new ScannerRegistry().getScanner(""); }
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; }