Browse Source

Tests: TestModel - Add class TestModel

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

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

@ -0,0 +1,34 @@
package foundation.pEp.jniadapter.test.utils.model;
import java.util.HashMap;
import java.util.Map;
public class TestModel {
private Map<Role, TestIdentity> idents = new HashMap<>();
private Map<Node, TestNode> nodes = new HashMap<>();
private TestNode myNode = null;
public TestModel() {
}
public TestNode getMyNode() {
return myNode;
}
public void add(TestIdentity ident) {
idents.put(ident.getRole(), ident);
}
public TestIdentity get(Role name) {
return idents.get(name);
}
public void add(TestNode node) {
nodes.put(node.getName(), node);
}
// public TestNode get(Node name) {
// return nodes.get(name);
// }
}

Loading…
Cancel
Save