|
@ -44,6 +44,15 @@ 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("Type")); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void addCredentialTest() { vlt.addCredential();} |
|
|
void addCredentialTest() { vlt.addCredential();} |
|
|
|
|
|
|
|
|