Browse Source

refactor createNewVault test

feature-create-new-vault
binsky 3 years ago
parent
commit
dc97162cbe
  1. 4
      src/test/java/PasswordManagerTest.java

4
src/test/java/PasswordManagerTest.java

@ -90,9 +90,9 @@ class PasswordManagerTest {
@Test @Test
void createNewVault() { void createNewVault() {
assertEquals(0, pm.vaults.size());
int vaultCount = pm.vaults.size();
pm.createNewVault(); pm.createNewVault();
assertEquals(1, pm.vaults.size());
assertEquals(vaultCount + 1, pm.vaults.size());
} }
private ByteArrayInputStream getEmptyStringInputStream() { private ByteArrayInputStream getEmptyStringInputStream() {

Loading…
Cancel
Save