From a63314d9f7432fda0d556118063cf1a3a735859d Mon Sep 17 00:00:00 2001 From: fdai6352 Date: Tue, 1 Feb 2022 22:53:34 +0100 Subject: [PATCH 1/3] =?UTF-8?q?add=20basisklassen=20hinzugef=C3=BCgt=20in?= =?UTF-8?q?=20Vault?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/Vault.java | 20 ++++++++++++++++++++ src/main/java/VaultInterface.java | 9 +++++++++ 2 files changed, 29 insertions(+) diff --git a/src/main/java/Vault.java b/src/main/java/Vault.java index 70d4b52..4a58026 100644 --- a/src/main/java/Vault.java +++ b/src/main/java/Vault.java @@ -1,3 +1,23 @@ public class Vault implements VaultInterface { + public void configure(){ + + } + + public void addCredential(){ + + } + + public void showCredential(){ + + } + + public void getAsJson(){ + + } + + static public void loadFromJson(){ + + } + } diff --git a/src/main/java/VaultInterface.java b/src/main/java/VaultInterface.java index 471dbd2..75f2f7f 100644 --- a/src/main/java/VaultInterface.java +++ b/src/main/java/VaultInterface.java @@ -2,4 +2,13 @@ public interface VaultInterface { + public void configure(); + public void addCredential(); + public void showCredential(); + public void getAsJson(); + + static public void loadFromJson() { + + }; + } From 0bc394a7c37ab94e6b2e32a22d1afc7c205983a2 Mon Sep 17 00:00:00 2001 From: fdai6352 Date: Tue, 1 Feb 2022 23:08:48 +0100 Subject: [PATCH 2/3] =?UTF-8?q?add=20basisklassen=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/VaultTest.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/test/java/VaultTest.java b/src/test/java/VaultTest.java index d0e306d..0b3e72f 100644 --- a/src/test/java/VaultTest.java +++ b/src/test/java/VaultTest.java @@ -9,4 +9,32 @@ import java.util.NoSuchElementException; public class VaultTest { + static Vault vlt; + + @BeforeAll + static void init() { + vlt = new Vault(); + } + + /* @BeforeEach + void reset() { + pm.outputStream = System.out; + pm.inputStream = System.in; + }*/ + + @Test + void configure() {vlt.configure();} + + @Test + void addCredential() {vlt.addCredential();} + + @Test + void showCredential() {vlt.showCredential();} + + @Test + void getAsJson() {vlt.getAsJson();} + + @Test + void loadFromJson() {vlt.loadFromJson();} + } From bf3945cef3878e1b69cc3bc2ad595d34b97630e6 Mon Sep 17 00:00:00 2001 From: fdai6352 Date: Sat, 5 Feb 2022 15:27:08 +0100 Subject: [PATCH 3/3] made loadFromJson non-static --- src/main/java/Vault.java | 2 +- src/main/java/VaultInterface.java | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/Vault.java b/src/main/java/Vault.java index 4a58026..e377411 100644 --- a/src/main/java/Vault.java +++ b/src/main/java/Vault.java @@ -16,7 +16,7 @@ public class Vault implements VaultInterface { } - static public void loadFromJson(){ + public void loadFromJson(){ } diff --git a/src/main/java/VaultInterface.java b/src/main/java/VaultInterface.java index 75f2f7f..50bbd1d 100644 --- a/src/main/java/VaultInterface.java +++ b/src/main/java/VaultInterface.java @@ -6,9 +6,6 @@ public interface VaultInterface { public void addCredential(); public void showCredential(); public void getAsJson(); - - static public void loadFromJson() { - - }; + public void loadFromJson(); }