@ -0,0 +1,3 @@
public class Vault implements VaultInterface {
}
@ -0,0 +1,5 @@
public interface VaultInterface {
@ -55,7 +55,7 @@ class PasswordManagerTest {
pm.inputStream = new ByteArrayInputStream("v 0\n".getBytes(StandardCharsets.UTF_8));
pm.outputStream = outputStream;
pm.showMenu();
assertTrue(outputStream.toString().endsWith("-- vaults not implemented yet\n"));
assertFalse(outputStream.toString().endsWith("-- vaults not implemented yet\n"));
@Test
@ -0,0 +1,12 @@
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.nio.charset.StandardCharsets;
import java.util.NoSuchElementException;
public class VaultTest {