summaryrefslogtreecommitdiff
path: root/same/src/test
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-20 10:34:25 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-20 10:34:25 +0100
commitf238785c99d2446e75761711b55c39dba79f1f45 (patch)
tree4e5d820c559bb478f4508873ca86f73e0c71d9d6 /same/src/test
parent148d196ef154c420c450f8dcaa5b7d506115421a (diff)
Client performs master election.
Diffstat (limited to 'same/src/test')
-rw-r--r--same/src/test/java/com/orbekk/same/FunctionalTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/same/src/test/java/com/orbekk/same/FunctionalTest.java b/same/src/test/java/com/orbekk/same/FunctionalTest.java
index 102ae14..9380409 100644
--- a/same/src/test/java/com/orbekk/same/FunctionalTest.java
+++ b/same/src/test/java/com/orbekk/same/FunctionalTest.java
@@ -12,6 +12,9 @@ import java.util.List;
import org.junit.Before;
import org.junit.Test;
+import com.orbekk.paxos.PaxosService;
+import com.orbekk.paxos.PaxosServiceImpl;
+
/** A functional test that runs with a master and several clients. */
public class FunctionalTest {
Master master;
@@ -44,6 +47,9 @@ public class FunctionalTest {
clientUrl, broadcaster);
connections.clientMap.put(clientUrl, client.getService());
clients.add(client);
+ String paxosUrl = clientUrl.replace("ClientService", "PaxosService");
+ PaxosService paxos = new PaxosServiceImpl(paxosUrl);
+ connections.paxosMap.put(paxosUrl, paxos);
return client;
}