Browse Source

update the rest of the tests (minor)

JNI-96
heck 5 years ago
parent
commit
440de47012
  1. 2
      test/java/foundation/pEp/jniadapter/test/jni92/Makefile
  2. 6
      test/java/foundation/pEp/jniadapter/test/regression/TestMain.java

2
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

6
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<RegTestContext>("Engine.myself", new RegTestContext(), ctx -> {
ctx.alice = ctx.engine.myself(ctx.alice);
}).run();
@ -194,7 +194,7 @@ class TestMain {
}).run();
new TestUnit<RegTestContext>("Engine.importKey", new RegTestContext(), ctx -> {
ctx.engine.importKey(ctx.key);
ctx.engine.importKey(ctx.keyBobPub);
}).run();
new TestUnit<RegTestContext>("Engine.blacklist_add", new RegTestContext(), ctx -> {

Loading…
Cancel
Save