2 Commits

  1. 1
      src/main/java/VaultInterface.java
  2. 31
      src/test/java/VaultTest.java

1
src/main/java/VaultInterface.java

@ -5,6 +5,7 @@ public interface VaultInterface {
void configure(); void configure();
void addCredential(); void addCredential();
void showCredential(); void showCredential();
void editCredential();
void getAsJson(); void getAsJson();
void loadFromJson(); void loadFromJson();
} }

31
src/test/java/VaultTest.java

@ -41,37 +41,6 @@ public class VaultTest {
assertFalse(vlt.credentialM); assertFalse(vlt.credentialM);
} }
/* @Test
void openAddCredentialMenuItem() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
vlt.inputS = new ByteArrayInputStream("a".getBytes(StandardCharsets.UTF_8));
vlt.outputS = outputStream;
vlt.credentialMenu();
assertTrue(outputStream.toString().contains("Add"));
}*/
/*@Test
void openShowCredentialMenuItem() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
vlt.inputS = new ByteArrayInputStream("c\n1".getBytes(StandardCharsets.UTF_8));
vlt.outputS = outputStream;
vlt.credentialMenu();
assertTrue(outputStream.toString().contains("Type"));
}*/
/*@Test
void openEditCredentialMenuItem() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
vlt.inputS = new ByteArrayInputStream("l\n1\nu\npeter".getBytes(StandardCharsets.UTF_8));
vlt.outputS = outputStream;
vlt.credentialMenu();
assertTrue(outputStream.toString().contains("Type"));
assertEquals(1,vlt.newID);
assertTrue(vlt.decision);
assertEquals("peter",vlt.newString);
}*/
@Test @Test
void editCredentialTest() { void editCredentialTest() {
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); ByteArrayOutputStream outputStream = new ByteArrayOutputStream();

Loading…
Cancel
Save