diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-18 10:23:30 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-18 10:23:30 +0100 |
commit | a076bf70f82e4100feddac63224041465f75c64e (patch) | |
tree | 4c88483e9a88295177e4d67b4c148d9c21cebe36 /same/src/test/java | |
parent | 5a21215b4ea85bfa4da8d3fbb0f87916c2f4635a (diff) |
Refactor Broadcaster.
Take a client url instead of a client parameter, to handle error
conditions.
Diffstat (limited to 'same/src/test/java')
-rw-r--r-- | same/src/test/java/com/orbekk/same/ClientServiceImplTest.java | 2 | ||||
-rw-r--r-- | same/src/test/java/com/orbekk/same/MasterServiceImplTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/same/src/test/java/com/orbekk/same/ClientServiceImplTest.java b/same/src/test/java/com/orbekk/same/ClientServiceImplTest.java index 75bf75d..2baa829 100644 --- a/same/src/test/java/com/orbekk/same/ClientServiceImplTest.java +++ b/same/src/test/java/com/orbekk/same/ClientServiceImplTest.java @@ -7,7 +7,7 @@ import org.junit.Test; public class ClientServiceImplTest { private State state = new State("ClientNetwork"); private TestConnectionManager connections = new TestConnectionManager(); - private TestBroadcaster broadcaster = new TestBroadcaster(connections); + private TestBroadcaster broadcaster = new TestBroadcaster(); private ClientServiceImpl client = new ClientServiceImpl(state, connections); @Test public void testSetState() { diff --git a/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java b/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java index 9c72319..8397744 100644 --- a/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java +++ b/same/src/test/java/com/orbekk/same/MasterServiceImplTest.java @@ -11,7 +11,7 @@ import org.junit.Before; public class MasterServiceImplTest { private State state = new State("TestNetwork"); private TestConnectionManager connections = new TestConnectionManager(); - private TestBroadcaster broadcaster = new TestBroadcaster(connections); + private TestBroadcaster broadcaster = new TestBroadcaster(); private MasterServiceImpl master = new MasterServiceImpl(state, connections, broadcaster); |