Browse Source

message test case

JNI-44
Volker Birk 10 years ago
parent
commit
f9874b87d6
  1. 9
      test/Testing.java

9
test/Testing.java

@ -2,6 +2,7 @@ import org.pEp.jniadapter.Engine;
import org.pEp.jniadapter.pEpException;
import org.pEp.jniadapter.Identity;
import org.pEp.jniadapter.Message;
import java.util.Vector;
class Testing {
public static void main(String[] args) {
@ -26,10 +27,18 @@ class Testing {
// message
Message msg = new Message();
Identity from = new Identity();
from.username = "Volker Birk";
from.address = "vb@dingens.org";
msg.setFrom(from);
Vector<Identity> to = new Vector<Identity>();
Identity to1 = new Identity();
to1.username = "Volker Birk";
to1.address = "vb@pep-project.org";
to.add(to1);
msg.setTo(to);
}
}

Loading…
Cancel
Save