fix tests. I really need to run these more often, and write more.

This commit is contained in:
Andy Janata 2012-03-15 14:51:36 -07:00
parent 1a2b47e809
commit 16483c94b3
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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();