@ -1,6 +1,7 @@
public class PasswordValidator {
int minLength = 6;
public boolean validate(String password) {
return false;
return password.length() >= minLength;
}
@ -8,5 +8,8 @@ class PasswordValidatorTest {
void validate() {
PasswordValidator passwordValidator = new PasswordValidator();
assertFalse(passwordValidator.validate(""));
// test minimum password length
assertTrue(passwordValidator.validate("abcdef"));