You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
800 B
40 lines
800 B
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 {
|
|
|
|
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();}
|
|
|
|
}
|