From 6572370472a01a7dac3574d1bfb5dc2d1bc2a1f2 Mon Sep 17 00:00:00 2001 From: fdai6352 Date: Tue, 15 Feb 2022 16:41:33 +0100 Subject: [PATCH] added setPWLength Option --- src/main/java/Vault.java | 11 +++++++++++ src/test/java/VaultTest.java | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/main/java/Vault.java b/src/main/java/Vault.java index e5e1944..124c8b5 100644 --- a/src/main/java/Vault.java +++ b/src/main/java/Vault.java @@ -30,8 +30,19 @@ public class Vault implements VaultInterface { println(sbcm.toString()); + String input = scan.nextLine(); + + if (input.equals("e")) { + config = false; + } + } + public void setPWLength(){ + + } + + public void addCredential(){ } diff --git a/src/test/java/VaultTest.java b/src/test/java/VaultTest.java index 7558c71..06bf04a 100644 --- a/src/test/java/VaultTest.java +++ b/src/test/java/VaultTest.java @@ -38,6 +38,9 @@ public class VaultTest { @Test void loadFromJson() {vlt.loadFromJson();} + @Test + void setPWLength() {vlt.setPWLength();} + @Test void openConfigureMenu() { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); @@ -68,9 +71,6 @@ public class VaultTest { assertTrue(outputStream.toString().startsWith("Configure:")); } - // @Test - // void - private ByteArrayInputStream getEmptyStringInputStream() {