Browse Source

Vault and VaultTest refactor

feature-vault
fdai6352 3 years ago
parent
commit
46bd7e3f1c
  1. 8
      src/main/java/Vault.java
  2. 8
      src/test/java/VaultTest.java

8
src/main/java/Vault.java

@ -24,18 +24,12 @@ public class Vault implements VaultInterface {
config = true;
sbcm.append("Configure:\n");
sbcm.append("- Passwordlength: l\n");
sbcm.append("- Password length: l\n");
sbcm.append("- Have Capitals: h\n");
sbcm.append("- exit: e\n");
println(sbcm.toString());
String input = scan.nextLine();
if (input.equals("e")) {
config = false;
}
}
public void addCredential(){

8
src/test/java/VaultTest.java

@ -11,12 +11,14 @@ import static org.junit.jupiter.api.Assertions.*;
public class VaultTest {
Vault vlt = new Vault();
//Vault vlt = new Vault();
/* @BeforeAll
static Vault vlt;
@BeforeAll
static void init() {
vlt = new Vault();
}*/
}
@BeforeEach
void reset() {

Loading…
Cancel
Save