|
|
@ -53,6 +53,15 @@ public class VaultTest { |
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void openShowCredentialMenuItem() { |
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|
vlt.inputS = new ByteArrayInputStream("c".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.outputS = outputStream; |
|
|
|
vlt.credentialMenu(); |
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void addCredentialTest() { vlt.addCredential();} |
|
|
|
|
|
|
|