You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
381 B

import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class PasswordValidatorTest {
@Test
void validate() {
PasswordValidator passwordValidator = new PasswordValidator();
assertFalse(passwordValidator.validate(""));
// test minimum password length
assertTrue(passwordValidator.validate("abcdef"));
}
}