@ -12,6 +12,7 @@ public class Vault implements VaultInterface {
public boolean hasSpecialChars;
public boolean hasNumbers;
public String userName;
public boolean credentialM;
InputStream inputS = System.in;
OutputStream outputS = System.out;
@ -35,6 +35,13 @@ public class VaultTest {
assertTrue(outputStream.toString().startsWith("Configure"));
}
@Test
void exitConfigureMenu(){
vlt.inputS = new ByteArrayInputStream("e".getBytes(StandardCharsets.UTF_8));
vlt.credentialMenu();
assertFalse(vlt.credentialM);
void addCredentialTest() { vlt.addCredential();}