@Test(expected = IllegalArgumentException.class) public void validateUrlNonvalid() { String url = "sgashahah"; String validated = LayerValidator.sanitizeUrl(url); fail("Should have thrown exception"); }
public static String sanitizeUrl(final String url) throws IllegalArgumentException { return sanitizeUrl(url, RESERVED_PARAMS); }
LayerValidator { public static String sanitizeUrl(final String url) throws IllegalArgumentException { return sanitizeUrl(url, RESERVED_PARAMS); } }
LayerValidator { public static String sanitizeUrl(final String url) throws IllegalArgumentException { return sanitizeUrl(url, RESERVED_PARAMS); }  }
LayerValidator { public static String sanitizeUrl(final String url) throws IllegalArgumentException { return sanitizeUrl(url, RESERVED_PARAMS); }  static Map<String, Map<String, String>> validateLocale(Map<String, Map<String, String>> locale); static String sanitizeUrl(final String url); static String sanitizeUrl(final String url, Set<String> paramsToRemove); static String sanitizeGFIContent(String gfiContent); static Set<String> getMandatoryFields(String type); static Set<String> getRecognizedLayerTypes(); static void validateAndSanitizeLayerInput(MapLayer input); }
LayerValidator { public static String sanitizeUrl(final String url) throws IllegalArgumentException { return sanitizeUrl(url, RESERVED_PARAMS); }  static Map<String, Map<String, String>> validateLocale(Map<String, Map<String, String>> locale); static String sanitizeUrl(final String url); static String sanitizeUrl(final String url, Set<String> paramsToRemove); static String sanitizeGFIContent(String gfiContent); static Set<String> getMandatoryFields(String type); static Set<String> getRecognizedLayerTypes(); static void validateAndSanitizeLayerInput(MapLayer input);  }