|
|
@ -41,37 +41,6 @@ public class VaultTest { |
|
|
|
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 |
|
|
|
void editCredentialTest() { |
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|