diff options
Diffstat (limited to 'same/src/test/java')
-rw-r--r-- | same/src/test/java/com/orbekk/same/TestConnectionManager.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/same/src/test/java/com/orbekk/same/TestConnectionManager.java b/same/src/test/java/com/orbekk/same/TestConnectionManager.java new file mode 100644 index 0000000..544bab5 --- /dev/null +++ b/same/src/test/java/com/orbekk/same/TestConnectionManager.java @@ -0,0 +1,16 @@ +package com.orbekk.same; + +public class TestConnectionManager implements ConnectionManager { + public Map<String, ClientService> clientMap = + new HashMap<String, ClientService>(); + public Map<String, MasterService> masterMap = + new HashMap<String, MasterService>(); + + public ClientService getClient(String url) { + return clientMap.get(url); + } + + public MasterService getMaster(String url) { + return masterMap.get(url); + } +} |