@Test public void when_uri_https_www_google_de_defined_https_www_google_de_slash_nerdytest__is_valid() throws Exception { assertTrue(validationToTest.isWhitelisted("https: }
public boolean isWhitelisted(String uriAsString, Collection<URI> whitelist) { URI uri; try { uri = new URI(uriAsString); } catch (URISyntaxException e) { throw new NotAcceptableException("Not a valid uri:"+uriAsString); } for (URI accepted: whitelist) { if (isContained(uri, accepted)) { return true; } } return false; }
ProjectWhiteListSupport { public boolean isWhitelisted(String uriAsString, Collection<URI> whitelist) { URI uri; try { uri = new URI(uriAsString); } catch (URISyntaxException e) { throw new NotAcceptableException("Not a valid uri:"+uriAsString); } for (URI accepted: whitelist) { if (isContained(uri, accepted)) { return true; } } return false; } }
ProjectWhiteListSupport { public boolean isWhitelisted(String uriAsString, Collection<URI> whitelist) { URI uri; try { uri = new URI(uriAsString); } catch (URISyntaxException e) { throw new NotAcceptableException("Not a valid uri:"+uriAsString); } for (URI accepted: whitelist) { if (isContained(uri, accepted)) { return true; } } return false; }  }
ProjectWhiteListSupport { public boolean isWhitelisted(String uriAsString, Collection<URI> whitelist) { URI uri; try { uri = new URI(uriAsString); } catch (URISyntaxException e) { throw new NotAcceptableException("Not a valid uri:"+uriAsString); } for (URI accepted: whitelist) { if (isContained(uri, accepted)) { return true; } } return false; }  boolean isWhitelisted(String uriAsString, Collection<URI> whitelist); }
ProjectWhiteListSupport { public boolean isWhitelisted(String uriAsString, Collection<URI> whitelist) { URI uri; try { uri = new URI(uriAsString); } catch (URISyntaxException e) { throw new NotAcceptableException("Not a valid uri:"+uriAsString); } for (URI accepted: whitelist) { if (isContained(uri, accepted)) { return true; } } return false; }  boolean isWhitelisted(String uriAsString, Collection<URI> whitelist);  }