You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
998 B
35 lines
998 B
package foundation.pEp.jniadapter.test.jni94;
|
|
import foundation.pEp.jniadapter.*;
|
|
import foundation.pEp.jniadapter.test.utils.TestUtils;
|
|
|
|
import java.lang.Thread;
|
|
|
|
|
|
/*
|
|
This test tries to use the feature described in in JNI-94
|
|
https://pep.foundation/jira/browse/JNI-94
|
|
|
|
`engine.getMachineDirectory()` and `engine.getUserDirectory()`
|
|
*/
|
|
|
|
|
|
class TestMain {
|
|
public static void main(String[] args) {
|
|
Engine engine;
|
|
try {
|
|
TestUtils.logH2("Creating new Engine");
|
|
engine = new Engine();
|
|
Sync.DefaultCallback callbacks = new Sync.DefaultCallback();
|
|
engine.setMessageToSendCallback(callbacks);
|
|
TestUtils.logH2("Machine directory: ");
|
|
TestUtils.log(engine.getMachineDirectory());
|
|
|
|
TestUtils.logH2("User directory:" );
|
|
TestUtils.log(engine.getUserDirectory());
|
|
}
|
|
catch (pEpException ex) {
|
|
System.out.println("Cannot load");
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|