3 Commits

  1. 20
      src/main/java/Vault.java
  2. 6
      src/main/java/VaultInterface.java
  3. 28
      src/test/java/VaultTest.java

20
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(){
}
public void loadFromJson(){
}
}

6
src/main/java/VaultInterface.java

@ -2,4 +2,10 @@
public interface VaultInterface {
public void configure();
public void addCredential();
public void showCredential();
public void getAsJson();
public void loadFromJson();
}

28
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();}
}
Loading…
Cancel
Save