Browse Source

add tests for methods required by the password manager interface

feature-startable
binsky 3 years ago
parent
commit
351906a848
  1. 21
      src/test/java/PasswordManagerTest.java

21
src/test/java/PasswordManagerTest.java

@ -1,11 +1,30 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*; import static org.junit.jupiter.api.Assertions.*;
class PasswordManagerTest { class PasswordManagerTest {
static PasswordManager pm;
@BeforeAll
static void init() {
pm = new PasswordManager();
}
@Test @Test
void constructor() { void constructor() {
PasswordManager pm = new PasswordManager();
assertInstanceOf(PasswordManager.class, pm);
}
@Test
void listVaults() {
pm.listVaults();
}
@Test
void openVault() {
pm.openVault();
} }
} }
Loading…
Cancel
Save