Browse Source

Merge commit '351906a848f70716cbf25f2934aa3afd844eedd9' into HEAD

feature-add-empty-showmenu-method
jenkins 3 years ago
parent
commit
bf7fe0f9bc
  1. 19
      src/main/java/PasswordManager.java
  2. 6
      src/main/java/PasswordManagerInterface.java
  3. 30
      src/test/java/PasswordManagerTest.java

19
src/main/java/PasswordManager.java

@ -0,0 +1,19 @@
public class PasswordManager implements PasswordManagerInterface {
public static void main(String[] args) {
new PasswordManager();
}
public PasswordManager() {
System.out.println("Hello World");
}
@Override
public void listVaults() {
}
@Override
public void openVault() {
}
}

6
src/main/java/PasswordManagerInterface.java

@ -0,0 +1,6 @@
public interface PasswordManagerInterface {
public static void main(String[] args) {
};
public void listVaults();
public void openVault();
}

30
src/test/java/PasswordManagerTest.java

@ -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();
}
}
Loading…
Cancel
Save