|
@ -10,6 +10,9 @@ class PasswordValidatorTest { |
|
|
assertFalse(passwordValidator.validate("")); |
|
|
assertFalse(passwordValidator.validate("")); |
|
|
|
|
|
|
|
|
// test minimum password length |
|
|
// test minimum password length |
|
|
|
|
|
passwordValidator.setMinLength(6); |
|
|
|
|
|
assertFalse(passwordValidator.validate("abcde")); |
|
|
assertTrue(passwordValidator.validate("abcdef")); |
|
|
assertTrue(passwordValidator.validate("abcdef")); |
|
|
|
|
|
assertTrue(passwordValidator.validate("abcdefg")); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |