diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-20 10:34:25 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-03-20 10:34:25 +0100 |
commit | f238785c99d2446e75761711b55c39dba79f1f45 (patch) | |
tree | 4e5d820c559bb478f4508873ca86f73e0c71d9d6 /same/src/test | |
parent | 148d196ef154c420c450f8dcaa5b7d506115421a (diff) |
Client performs master election.
Diffstat (limited to 'same/src/test')
-rw-r--r-- | same/src/test/java/com/orbekk/same/FunctionalTest.java | 6 |
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; } |