From 45be4caae7724730f6ccc66e1d8d727f9d8dd319 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 24 Feb 2021 20:30:10 +0100 Subject: [PATCH] update tests for newer pitytest version --- .../java/foundation/pEp/jniadapter/test/jni126/TestAlice.java | 3 ++- .../foundation/pEp/jniadapter/test/regression/TestMain.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java b/test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java index 273974c..3f54317 100644 --- a/test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java +++ b/test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java @@ -11,7 +11,7 @@ import static foundation.pEp.pitytest.utils.TestUtils.*; class Jni126TestContext extends AdapterBaseTestContext { @Override - public void init() throws Throwable { + public AdapterBaseTestContext init() throws Throwable { super.init(); alice = engine.importKey(keyAliceSecPassphrase).get(0); @@ -31,6 +31,7 @@ class Jni126TestContext extends AdapterBaseTestContext { return "passphrase_alice"; } }); + return this; } } diff --git a/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java b/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java index 89b30f7..84b6980 100644 --- a/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java +++ b/test/java/foundation/pEp/jniadapter/test/regression/TestMain.java @@ -300,11 +300,11 @@ class TestMain { ctx.engine.config_passphrase_for_new_keys(true, "SUPERCOMPLICATEDPASSPHRASE"); }); - new TestUnit("Engine.setDebugLogEnabled", new RegTestContext(), ctx -> { + new TestUnit("Engine.setDebugLogEnabled", new AdapterBaseTestContext(), ctx -> { Engine.setDebugLogEnabled(true); }); - new TestUnit("Engine.setDebugLogEnabled", new RegTestContext(), ctx -> { + new TestUnit("Engine.setDebugLogEnabled", new AdapterBaseTestContext(), ctx -> { Engine.getDebugLogEnabled(); });