Browse Source

add empty showMenu method to password manager class

feature-add-empty-showmenu-method
binsky 3 years ago
parent
commit
19b5d0097d
  1. 8
      src/main/java/PasswordManager.java
  2. 1
      src/main/java/PasswordManagerInterface.java
  3. 5
      src/test/java/PasswordManagerTest.java

8
src/main/java/PasswordManager.java

@ -1,6 +1,7 @@
public class PasswordManager implements PasswordManagerInterface { public class PasswordManager implements PasswordManagerInterface {
public static void main(String[] args) { public static void main(String[] args) {
new PasswordManager();
PasswordManager pm = new PasswordManager();
pm.showMenu();
} }
public PasswordManager() { public PasswordManager() {
@ -16,4 +17,9 @@ public class PasswordManager implements PasswordManagerInterface {
public void openVault() { public void openVault() {
} }
@Override
public void showMenu() {
}
} }

1
src/main/java/PasswordManagerInterface.java

@ -3,4 +3,5 @@ public interface PasswordManagerInterface {
}; };
public void listVaults(); public void listVaults();
public void openVault(); public void openVault();
public void showMenu();
} }

5
src/test/java/PasswordManagerTest.java

@ -27,4 +27,9 @@ class PasswordManagerTest {
void openVault() { void openVault() {
pm.openVault(); pm.openVault();
} }
@Test
void showMenu() {
pm.showMenu();
}
} }
Loading…
Cancel
Save