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")); } }