Browse Source

Test Basic - use AdapterTestUtils for BlobList creation

JNI-134
heck 4 years ago
parent
commit
29aff6a292
  1. 14
      test/java/foundation/pEp/jniadapter/test/basic/TestMain.java

14
test/java/foundation/pEp/jniadapter/test/basic/TestMain.java

@ -49,18 +49,8 @@ class TestMain {
});
new TestUnit<BasicTestContext>("setAttachments", btc, ctx -> {
int nrAttachemnts = 3;
log("Adding " + nrAttachemnts + " attachments");
Vector<Blob> attachments = new Vector<>();
for (int i = 0; i < nrAttachemnts; i++) {
Blob blb = new Blob();
String dataString = "Attachement nr: " + i + " [TEST DATA]";
blb.data = dataString.getBytes();
blb.filename = "testfilename.txt";
attachments.add(blb);
}
ctx.msgToBob.setAttachments(attachments);
log("Adding " + ctx.attachmentsLen + " attachments");
ctx.msgToBob.setAttachments(ctx.attachments);
});
new TestUnit<BasicTestContext>("Encrypt", btc, ctx -> {

Loading…
Cancel
Save