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