@Test public void testInputValidation_refuses_lessthen() { String pageNameOK = "<script>"; boolean isValid = WikiInputValidation.validatePageName(pageNameOK); assertFalse(isValid); }
public static boolean validatePageName(String inputPageName) { Pattern pattern = Pattern.compile(pageNameRegExp); Matcher matcher = pattern.matcher(inputPageName); return matcher.matches(); }
WikiInputValidation { public static boolean validatePageName(String inputPageName) { Pattern pattern = Pattern.compile(pageNameRegExp); Matcher matcher = pattern.matcher(inputPageName); return matcher.matches(); } }
WikiInputValidation { public static boolean validatePageName(String inputPageName) { Pattern pattern = Pattern.compile(pageNameRegExp); Matcher matcher = pattern.matcher(inputPageName); return matcher.matches(); }  }
WikiInputValidation { public static boolean validatePageName(String inputPageName) { Pattern pattern = Pattern.compile(pageNameRegExp); Matcher matcher = pattern.matcher(inputPageName); return matcher.matches(); }  static boolean validatePageName(String inputPageName); }
WikiInputValidation { public static boolean validatePageName(String inputPageName) { Pattern pattern = Pattern.compile(pageNameRegExp); Matcher matcher = pattern.matcher(inputPageName); return matcher.matches(); }  static boolean validatePageName(String inputPageName);  }