|
|
@ -57,10 +57,10 @@ public class VaultTest { |
|
|
|
assertEquals("password",vlt.password); |
|
|
|
} |
|
|
|
|
|
|
|
/*@Test |
|
|
|
@Test |
|
|
|
void openShowCredentialMenuItem() { |
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|
vlt.inputS = new ByteArrayInputStream("c".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.inputS = new ByteArrayInputStream("c\n1".getBytes(StandardCharsets.UTF_8)); |
|
|
|
vlt.outputS = outputStream; |
|
|
|
vlt.credentialMenu(); |
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
@ -75,7 +75,7 @@ public class VaultTest { |
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
/*@Test |
|
|
|
void addCredentialTest() { |
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|
vlt.outputS = outputStream; |
|
|
@ -86,7 +86,7 @@ public class VaultTest { |
|
|
|
assertEquals("peter", vlt.userName); |
|
|
|
assertTrue(outputStream.toString().contains("password")); |
|
|
|
assertEquals("password",vlt.password); |
|
|
|
}*/ |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
void showCredentialTest() { |
|
|
@ -104,7 +104,7 @@ public class VaultTest { |
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
|
assertFalse(vlt.isInt); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
@Test |
|
|
|
void getAsJson() {vlt.getAsJson();} |
|
|
|