### Question:
Password { public static boolean containsDigit(String password) { for (char c : password.toCharArray()) { if (Character.isDigit(c)) return true; } return false; }  static String generateSalt(); static String hash(String password, String salt); static boolean longEnough(String password); static boolean containsUpperCase(String password); static boolean containsLowerCase(String password); static boolean containsDigit(String password); static boolean passwordMatches(StudentModel.Student student, String password); static boolean checkRequirements(String password, GridPane passwordVerifierGridPane);  }### Answer:
@Test public void noDigits() { Assert.assertFalse(Password.containsDigit("abcdef")); }
@Test public void oneDigit() { Assert.assertTrue(Password.containsDigit("ab1def")); }