|
@ -60,7 +60,7 @@ public class VaultTest { |
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
assertTrue(outputStream.toString().contains("Type")); |
|
|
}*/ |
|
|
}*/ |
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
|
/*@Test |
|
|
void openEditCredentialMenuItem() { |
|
|
void openEditCredentialMenuItem() { |
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
vlt.inputS = new ByteArrayInputStream("l\n1\nu\npeter".getBytes(StandardCharsets.UTF_8)); |
|
|
vlt.inputS = new ByteArrayInputStream("l\n1\nu\npeter".getBytes(StandardCharsets.UTF_8)); |
|
@ -70,12 +70,26 @@ public class VaultTest { |
|
|
assertEquals(1,vlt.newID); |
|
|
assertEquals(1,vlt.newID); |
|
|
assertTrue(vlt.decision); |
|
|
assertTrue(vlt.decision); |
|
|
assertEquals("peter",vlt.newString); |
|
|
assertEquals("peter",vlt.newString); |
|
|
} |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
/*@Test |
|
|
|
|
|
|
|
|
@Test |
|
|
void editCredentialTest() { |
|
|
void editCredentialTest() { |
|
|
|
|
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); |
|
|
|
|
|
vlt.outputS = outputStream; |
|
|
|
|
|
vlt.inputS = new ByteArrayInputStream("1\np\npassword".getBytes(StandardCharsets.UTF_8)); |
|
|
|
|
|
vlt.editCredential(); |
|
|
|
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
assertEquals(1, vlt.newID); |
|
|
|
|
|
assertEquals("password", vlt.newString); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vlt.inputS = new ByteArrayInputStream("1\nu\npeter".getBytes(StandardCharsets.UTF_8)); |
|
|
|
|
|
vlt.editCredential(); |
|
|
|
|
|
|
|
|
|
|
|
assertEquals(1, vlt.newID); |
|
|
|
|
|
assertEquals("peter", vlt.newString); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void addCredentialTest() { |
|
|
void addCredentialTest() { |
|
|