Browse Source

Merge commit 'bf3945cef3878e1b69cc3bc2ad595d34b97630e6' into HEAD

feature-create-new-vault
jenkins 3 years ago
parent
commit
fb4678c3ce
  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 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 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 { 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