From b8ebd3b2f296e086f49046b0ce070e0c92d57dfc Mon Sep 17 00:00:00 2001 From: fdai6352 Date: Tue, 15 Feb 2022 16:07:41 +0100 Subject: [PATCH] VaultTest refactor --- src/test/java/VaultTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/VaultTest.java b/src/test/java/VaultTest.java index 9bc9164..7558c71 100644 --- a/src/test/java/VaultTest.java +++ b/src/test/java/VaultTest.java @@ -26,9 +26,6 @@ public class VaultTest { vlt.inputS = System.in; } - @Test - void configure() {vlt.configure();} - @Test void addCredential() {vlt.addCredential();} @@ -44,7 +41,7 @@ public class VaultTest { @Test void openConfigureMenu() { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - vlt.inputS = getEmptyStringInputStream(); + vlt.inputS = new ByteArrayInputStream("__\n".getBytes(StandardCharsets.UTF_8)); vlt.outputS = outputStream; vlt.configure(); assertTrue(outputStream.toString().startsWith("Configure:")); @@ -71,6 +68,9 @@ public class VaultTest { assertTrue(outputStream.toString().startsWith("Configure:")); } + // @Test + // void + private ByteArrayInputStream getEmptyStringInputStream() {