summaryrefslogtreecommitdiff
path: root/same/src/test/java/com
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-16 13:38:13 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-16 13:38:13 +0100
commit3c798bcdad4a6eef767a736c541115d9b5129478 (patch)
treeb01f2506ca2452464b12f3c6201f34d607dc1338 /same/src/test/java/com
parentaaf40b22ba16ab2079e97854d63ba8262bbdf860 (diff)
Add TestConnectionManager.
Diffstat (limited to 'same/src/test/java/com')
-rw-r--r--same/src/test/java/com/orbekk/same/TestConnectionManager.java16
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);
+ }
+}