From a076bf70f82e4100feddac63224041465f75c64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 18 Jan 2012 10:23:30 +0100 Subject: Refactor Broadcaster. Take a client url instead of a client parameter, to handle error conditions. --- same/src/test/java/com/orbekk/same/ClientServiceImplTest.java | 2 +- same/src/test/java/com/orbekk/same/MasterServiceImplTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'same/src/test/java') 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); -- cgit v1.2.3