Browse Source

update tests for newer pitytest version

JNI-129 Release_2.1.8
heck 4 years ago
parent
commit
45be4caae7
  1. 3
      test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java
  2. 4
      test/java/foundation/pEp/jniadapter/test/regression/TestMain.java

3
test/java/foundation/pEp/jniadapter/test/jni126/TestAlice.java

@ -11,7 +11,7 @@ import static foundation.pEp.pitytest.utils.TestUtils.*;
class Jni126TestContext extends AdapterBaseTestContext { class Jni126TestContext extends AdapterBaseTestContext {
@Override @Override
public void init() throws Throwable { public AdapterBaseTestContext init() throws Throwable {
super.init(); super.init();
alice = engine.importKey(keyAliceSecPassphrase).get(0); alice = engine.importKey(keyAliceSecPassphrase).get(0);
@ -31,6 +31,7 @@ class Jni126TestContext extends AdapterBaseTestContext {
return "passphrase_alice"; return "passphrase_alice";
} }
}); });
return this;
} }
} }

4
test/java/foundation/pEp/jniadapter/test/regression/TestMain.java

@ -300,11 +300,11 @@ class TestMain {
ctx.engine.config_passphrase_for_new_keys(true, "SUPERCOMPLICATEDPASSPHRASE"); ctx.engine.config_passphrase_for_new_keys(true, "SUPERCOMPLICATEDPASSPHRASE");
}); });
new TestUnit<RegTestContext>("Engine.setDebugLogEnabled", new RegTestContext(), ctx -> { new TestUnit<AdapterBaseTestContext>("Engine.setDebugLogEnabled", new AdapterBaseTestContext(), ctx -> {
Engine.setDebugLogEnabled(true); Engine.setDebugLogEnabled(true);
}); });
new TestUnit<RegTestContext>("Engine.setDebugLogEnabled", new RegTestContext(), ctx -> { new TestUnit<AdapterBaseTestContext>("Engine.setDebugLogEnabled", new AdapterBaseTestContext(), ctx -> {
Engine.getDebugLogEnabled(); Engine.getDebugLogEnabled();
}); });

Loading…
Cancel
Save