blob: 434b107e46e818b32d153fba9a8a19f43de83ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.orbekk.same;
import java.util.List;
import org.junit.Ignore;
@Ignore
public class TestBroadcaster implements Broadcaster {
public ConnectionManager connections;
public TestBroadcaster() {
}
public TestBroadcaster(ConnectionManager connections) {
this.connections = connections;
}
public void broadcast(final List<String> targets,
final ServiceOperation operation) {
for (String t : targets) {
ClientService client = connections.getClient(t);
operation.run(client);
}
}
}
|