Browse Source

Tests: TestModel - Add class TestNode

JNI-153
heck 1 year ago
parent
commit
f113f69c8e
1 changed files with 34 additions and 0 deletions
  1. +34
    -0
      test/java/foundation/pEp/jniadapter/test/utils/model/TestNode.java

+ 34
- 0
test/java/foundation/pEp/jniadapter/test/utils/model/TestNode.java View File

@ -0,0 +1,34 @@
package foundation.pEp.jniadapter.test.utils.model;
import java.util.HashMap;
import java.util.Map;
public class TestNode {
private Node name = null;
private Map<Role, TestIdentity> ownIdents = new HashMap<>();
private String TransportAddress = null;
public TestNode(Node name) {
this.name = name;
}
public Node getName() {
return name;
}
public Map<Role, TestIdentity> getOwnIdents() {
return ownIdents;
}
public void addOwnIdent(TestIdentity ident) {
this.ownIdents.put(ident.getRole(), ident);
}
public String getTransportAddress() {
return TransportAddress;
}
public void setTransportAddress(String transportAddress) {
TransportAddress = transportAddress;
}
}

Loading…
Cancel
Save