From 6b13284a52af0ae38168af20c4967757ed281371 Mon Sep 17 00:00:00 2001 From: binsky Date: Thu, 17 Feb 2022 17:41:00 +0100 Subject: [PATCH] add PasswordGenerator class --- src/main/java/PasswordGenerator.java | 5 +++++ src/test/java/PasswordGeneratorTest.java | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/main/java/PasswordGenerator.java create mode 100644 src/test/java/PasswordGeneratorTest.java diff --git a/src/main/java/PasswordGenerator.java b/src/main/java/PasswordGenerator.java new file mode 100644 index 0000000..b36bbbb --- /dev/null +++ b/src/main/java/PasswordGenerator.java @@ -0,0 +1,5 @@ +public class PasswordGenerator { + public String generateRandomPassword() { + return ""; + } +} diff --git a/src/test/java/PasswordGeneratorTest.java b/src/test/java/PasswordGeneratorTest.java new file mode 100644 index 0000000..8f3d4b2 --- /dev/null +++ b/src/test/java/PasswordGeneratorTest.java @@ -0,0 +1,19 @@ +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class PasswordGeneratorTest { + + static PasswordGenerator passwordGenerator; + + @BeforeAll + static void init() { + passwordGenerator = new PasswordGenerator(); + } + + @Test + void generateRandomPassword() { + assertSame("", passwordGenerator.generateRandomPassword()); + } +} \ No newline at end of file