This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
JRummikub/test/jrummikub/control/RoundControlTest.java
Ida Massow ea37e2f0d2 Fixed Clone
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@118 72836036-5685-4462-b002-a69064685172
2011-05-04 19:39:17 +02:00

26 lines
631 B
Java

package jrummikub.control;
import static org.junit.Assert.*;
import jrummikub.model.GameState;
import jrummikub.view.MockView;
import org.junit.Test;
public class RoundControlTest {
@Test
public void testDeal() {
MockView view = new MockView();
GameState testGameState = new GameState();
RoundControl testRound = new RoundControl(testGameState, view);
testRound.deal();
assertEquals(106 - testGameState.getPlayerCount() * 14, testGameState
.getGameHeap().getSize());
for (int i = 0; i < testGameState.getPlayerCount(); i++) {
assertEquals(14, testGameState.getPlayer(i).getHand().getSize());
}
}
}