Browse Source

Fixed wrong class reference.

reg test succeeds now.
JNI-104
heck 5 years ago
parent
commit
f33bd93de8
  1. 2
      src/jniutils.cc
  2. 1
      test/java/foundation/pEp/jniadapter/test/regression/TestMain.java

2
src/jniutils.cc

@ -748,7 +748,7 @@ namespace pEp {
PEP_CIPHER_SUITE to_CipherSuite(JNIEnv *env, jobject obj)
{
static const char *classname = "foundation/pEp/jniadapter/Message$CipherSuite";
static const char *classname = "foundation/pEp/jniadapter/CipherSuite";
jclass clazz_enc_format = findClass(env, classname);
jfieldID field_value = env->GetFieldID(clazz_enc_format, "value", "I");
assert(field_value);

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

@ -158,7 +158,6 @@ class TestMain {
ctx.engine.disable_identity_for_sync(ctx.alice);
}).run();
// TODO: class not found: foundation/pEp/jniadapter/Message$CipherSuite
new TestUnit<RegTestContext>("Engine.config_cipher_suite", new RegTestContext(), ctx -> {
ctx.engine.config_cipher_suite(CipherSuite.pEpCipherSuiteDefault);
}).run();

Loading…
Cancel
Save