Browse Source

added credential menu exit

feature-vault
fdai6352 3 years ago
parent
commit
1d4ec73c19
  1. 1
      src/main/java/Vault.java
  2. 7
      src/test/java/VaultTest.java

1
src/main/java/Vault.java

@ -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;

7
src/test/java/VaultTest.java

@ -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);
}
@Test
void addCredentialTest() { vlt.addCredential();}

Loading…
Cancel
Save