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

  1. import org.junit.jupiter.api.Test;
  2. import static org.junit.jupiter.api.Assertions.*;
  3. class PasswordValidatorTest {
  4. @Test
  5. void validate() {
  6. PasswordValidator passwordValidator = new PasswordValidator();
  7. assertFalse(passwordValidator.validate(""));
  8. // test minimum password length
  9. assertTrue(passwordValidator.validate("abcdef"));
  10. }
  11. }