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.
32 lines
992 B
32 lines
992 B
package foundation.pEp.jniadapter.test.templateAlice;
|
|
import static foundation.pEp.jniadapter.test.framework.TestLogger.*;
|
|
import foundation.pEp.jniadapter.test.framework.*;
|
|
import foundation.pEp.jniadapter.test.utils.*;
|
|
|
|
class TestAlice {
|
|
public static void main(String[] args) throws Exception {
|
|
TestSuite.getDefault().setVerbose(true);
|
|
TestSuite.getDefault().setTestColor(TestUtils.TermColor.GREEN);
|
|
|
|
new TestUnit<AdapterBaseTestContext>("Test Alice",new AdapterBaseTestContext() , ctx -> {
|
|
// do stuff using the context
|
|
// Test FAILS on unhandled exception, otherwise SUCCESS
|
|
|
|
ctx.alice = ctx.engine.myself(ctx.alice);
|
|
|
|
if(ctx.alice.fpr == null) {
|
|
throw new RuntimeException();
|
|
}
|
|
|
|
for(int i=0; i < 1000; i++ ) {
|
|
log("Alice is waiting...");
|
|
TestUtils.sleep(1000);
|
|
}
|
|
|
|
});
|
|
|
|
TestSuite.getDefault().run();
|
|
}
|
|
}
|
|
|
|
|
|
|