summaryrefslogtreecommitdiff
path: root/wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java
diff options
context:
space:
mode:
authorStevenWdV <stevenwdv@gmail.com>2021-11-29 00:12:42 +0100
committerStevenWdV <stevenwdv@gmail.com>2021-11-29 00:12:42 +0100
commitf463d4c1a550c4b3dfc0be362f0b0a723a88122d (patch)
tree9b85337f1d9eda3d7070cd57d952712cfe2ae6cc /wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java
parent60658378f68cc7c67cbea2758c6aef455c115c05 (diff)
Improve Java wrapper: add all tests, link correct libraries, use Maven, add Makefile & GitHub workflow. Fix make clean targets.
Diffstat (limited to 'wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java')
-rw-r--r--wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java31
1 files changed, 0 insertions, 31 deletions
diff --git a/wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java b/wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java
deleted file mode 100644
index 117f5ef..0000000
--- a/wrappers/EduVpnCommon/tests/eduvpncommon/VerifyTests.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package eduvpncommon;
-
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.time.Instant;
-
-class VerifyTests {
- private static final Path testDataDir = Paths.get("../../test_data");
-
- @BeforeAll
- static void oneTimeSetup() throws IOException {
- Discovery.insecureTestingSetExtraKey(Files.lines(testDataDir.resolve("dummy/public.key")).reduce((a, b) -> b).get());
- }
-
- @Test
- void testValid() throws IOException, VerifyException {
- Discovery.verify(
- Files.readAllBytes(Paths.get("../../test_data/dummy/server_list.json.minisig")),
- Files.readAllBytes(Paths.get("../../test_data/dummy/server_list.json")),
- "server_list.json",
- Instant.EPOCH
- );
- }
-
- //TODO
-} \ No newline at end of file