From 1634188b762e90cd0ab8bf93d3d3b17e0633a70f Mon Sep 17 00:00:00 2001 From: binsky Date: Sat, 5 Feb 2022 14:28:31 +0100 Subject: [PATCH] add PasswordValidator class with validate method --- src/main/java/PasswordValidator.java | 6 ++++++ src/test/java/PasswordValidatorTest.java | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/main/java/PasswordValidator.java create mode 100644 src/test/java/PasswordValidatorTest.java diff --git a/src/main/java/PasswordValidator.java b/src/main/java/PasswordValidator.java new file mode 100644 index 0000000..3825cd5 --- /dev/null +++ b/src/main/java/PasswordValidator.java @@ -0,0 +1,6 @@ +public class PasswordValidator { + + public boolean validate(String password) { + return false; + } +} diff --git a/src/test/java/PasswordValidatorTest.java b/src/test/java/PasswordValidatorTest.java new file mode 100644 index 0000000..5af0485 --- /dev/null +++ b/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("")); + } +} \ No newline at end of file