|
@ -9,4 +9,32 @@ import java.util.NoSuchElementException; |
|
|
|
|
|
|
|
|
public class VaultTest { |
|
|
public class VaultTest { |
|
|
|
|
|
|
|
|
|
|
|
static Vault vlt; |
|
|
|
|
|
|
|
|
|
|
|
@BeforeAll |
|
|
|
|
|
static void init() { |
|
|
|
|
|
vlt = new Vault(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* @BeforeEach |
|
|
|
|
|
void reset() { |
|
|
|
|
|
pm.outputStream = System.out; |
|
|
|
|
|
pm.inputStream = System.in; |
|
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void configure() {vlt.configure();} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void addCredential() {vlt.addCredential();} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void showCredential() {vlt.showCredential();} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void getAsJson() {vlt.getAsJson();} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
void loadFromJson() {vlt.loadFromJson();} |
|
|
|
|
|
|
|
|
} |
|
|
} |