|
|
@ -86,26 +86,22 @@ public class VaultTest { |
|
|
|
assertEquals("peter", vlt.userName); |
|
|
|
assertTrue(outputStream.toString().contains("password")); |
|
|
|
assertEquals("password",vlt.password); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
@Test |
|
|
|
/*@Test |
|
|
|
void showCredentialTest() { |
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|
vlt.outputS = outputStream; |
|
|
|
vlt.inputS = new ByteArrayInputStream("1".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.showCredential(); |
|
|
|
vlt.inputS = new ByteArrayInputStream("l\n1".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.credentialMenu(); |
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
assertTrue(vlt.isInt); |
|
|
|
|
|
|
|
vlt.outputS = outputStream; |
|
|
|
vlt.inputS = new ByteArrayInputStream("peter".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.showCredential(); |
|
|
|
vlt.inputS = new ByteArrayInputStream("l\npeter".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.credentialMenu(); |
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
assertFalse(vlt.isInt); |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
void getAsJson() {vlt.getAsJson();} |
|
|
|
|
|
|
|