Browse Source

add PasswordValidator class with validate method

feature-password-validator
binsky 3 years ago
parent
commit
1634188b76
  1. 6
      src/main/java/PasswordValidator.java
  2. 12
      src/test/java/PasswordValidatorTest.java

6
src/main/java/PasswordValidator.java

@ -0,0 +1,6 @@
public class PasswordValidator {
public boolean validate(String password) {
return false;
}
}

12
src/test/java/PasswordValidatorTest.java

@ -0,0 +1,12 @@
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(""));
}
}
Loading…
Cancel
Save