fix tests. I really need to run these more often, and write more.
This commit is contained in:
parent
1a2b47e809
commit
16483c94b3
|
@ -138,7 +138,7 @@ public class GameManagerTest {
|
|||
@Test
|
||||
public void testCreateGame() {
|
||||
cuMock.broadcastToAll(eq(MessageType.GAME_EVENT), anyObject(HashMap.class));
|
||||
expectLastCall().times(3);
|
||||
expectLastCall().times(6);
|
||||
cuMock.broadcastToList(anyObject(Collection.class), eq(MessageType.GAME_PLAYER_EVENT),
|
||||
anyObject(HashMap.class));
|
||||
expectLastCall().times(3);
|
||||
|
|
|
@ -68,6 +68,8 @@ public class GameTest {
|
|||
cuMock.broadcastToList(anyObject(Collection.class), eq(MessageType.GAME_PLAYER_EVENT),
|
||||
anyObject(HashMap.class));
|
||||
expectLastCall().times(4);
|
||||
gmMock.broadcastGameListRefresh();
|
||||
expectLastCall().times(4);
|
||||
replay(cuMock);
|
||||
gmMock.destroyGame(anyInt());
|
||||
expectLastCall().once();
|
||||
|
|
Loading…
Reference in New Issue