From 440de4701222e032c832cd6a0b707380a6a1c892 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 20 May 2020 23:28:56 +0200 Subject: [PATCH] update the rest of the tests (minor) --- test/java/foundation/pEp/jniadapter/test/jni92/Makefile | 2 -- .../foundation/pEp/jniadapter/test/regression/TestMain.java | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/java/foundation/pEp/jniadapter/test/jni92/Makefile b/test/java/foundation/pEp/jniadapter/test/jni92/Makefile index b1a5f4a..dfe4060 100644 --- a/test/java/foundation/pEp/jniadapter/test/jni92/Makefile +++ b/test/java/foundation/pEp/jniadapter/test/jni92/Makefile @@ -7,8 +7,6 @@ JAVA_CLASSES = \ TestMain.class \ ../utils/AdapterTestUtils.class -JAVA_CLASSES += $(JAVA_CLASSES_FRAMEWORK) - .PHONY: compile run test clean all: compile diff --git a/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java b/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java index 34199d9..867dddb 100644 --- a/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java +++ b/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java @@ -7,14 +7,14 @@ class RegTestContext extends AdapterBaseTestContext { // enhance the context @Override - public void init() throws Exception { + public void init() throws Throwable { super.init(); // init the enhancements } } class TestMain { - public static void main(String[] args) throws Exception { + public static void main(String[] args) { new TestUnit("Engine.myself", new RegTestContext(), ctx -> { ctx.alice = ctx.engine.myself(ctx.alice); }).run(); @@ -194,7 +194,7 @@ class TestMain { }).run(); new TestUnit("Engine.importKey", new RegTestContext(), ctx -> { - ctx.engine.importKey(ctx.key); + ctx.engine.importKey(ctx.keyBobPub); }).run(); new TestUnit("Engine.blacklist_add", new RegTestContext(), ctx -> {