summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-07-06 16:36:06 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-07-06 16:36:06 +0200
commit51b7fbe822bd9a3804c061f0b844884769d7ddba (patch)
tree152d79321131936d1bc49e959d2a7a2628c592cb /test/jrummikub
parent3193477354fc63477a3f42c94023fa84c129adf1 (diff)
downloadJRummikub-51b7fbe822bd9a3804c061f0b844884769d7ddba.tar
JRummikub-51b7fbe822bd9a3804c061f0b844884769d7ddba.zip
JavadocHEADmaster
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@609 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/control/GameControlTest.java2
-rw-r--r--test/jrummikub/control/network/NetworkGameControlTest.java13
-rw-r--r--test/jrummikub/control/network/NetworkRoundControlTest.java4
-rw-r--r--test/jrummikub/control/network/NetworkTurnControlTest.java4
-rw-r--r--test/jrummikub/control/turn/AIControlTest.java1
5 files changed, 20 insertions, 4 deletions
diff --git a/test/jrummikub/control/GameControlTest.java b/test/jrummikub/control/GameControlTest.java
index 68dda26..99463cd 100644
--- a/test/jrummikub/control/GameControlTest.java
+++ b/test/jrummikub/control/GameControlTest.java
@@ -84,6 +84,7 @@ public class GameControlTest {
assertSame(BottomPanelType.START_TURN_PANEL, view.bottomPanelType);
}
+ /** */
@Test
public void testNewGame() {
gameControl.getEndOfGameEvent().add(new IListener() {
@@ -131,6 +132,7 @@ public class GameControlTest {
assertTrue(gameEnded);
}
+ /** */
@Test
public void testAborting() {
gameControl.startGame();
diff --git a/test/jrummikub/control/network/NetworkGameControlTest.java b/test/jrummikub/control/network/NetworkGameControlTest.java
index b1769e2..cd7cbf4 100644
--- a/test/jrummikub/control/network/NetworkGameControlTest.java
+++ b/test/jrummikub/control/network/NetworkGameControlTest.java
@@ -14,7 +14,6 @@ import jrummikub.control.SaveControl;
import jrummikub.model.GameSettings;
import jrummikub.model.GameState;
import jrummikub.model.IHand;
-import jrummikub.model.MockRoundState;
import jrummikub.model.PlayerSettings;
import jrummikub.model.Position;
import jrummikub.model.RoundState;
@@ -22,7 +21,6 @@ import jrummikub.model.Stone;
import jrummikub.model.StoneSet;
import jrummikub.model.Table;
import jrummikub.util.IListener;
-import jrummikub.util.Pair;
import jrummikub.view.IView.BottomPanelType;
import jrummikub.view.MockView;
@@ -33,12 +31,19 @@ import org.junit.Test;
* Tests for the network game control
*/
public class NetworkGameControlTest {
-
- public NetworkGameControl hostControl, clientControl;
+ /** */
+ public NetworkGameControl hostControl;
+ /** */
+ public NetworkGameControl clientControl;
+ /** */
public GameSettings settings;
+ /** */
public MockView view;
+ /** */
public MockConnectionControl connection;
+ /** */
public boolean fired;
+ /** */
public RoundState roundState;
/** */
diff --git a/test/jrummikub/control/network/NetworkRoundControlTest.java b/test/jrummikub/control/network/NetworkRoundControlTest.java
index 56647ac..3b54073 100644
--- a/test/jrummikub/control/network/NetworkRoundControlTest.java
+++ b/test/jrummikub/control/network/NetworkRoundControlTest.java
@@ -22,6 +22,7 @@ import jrummikub.view.MockView;
import org.junit.Before;
import org.junit.Test;
+/** */
public class NetworkRoundControlTest {
private MockConnectionControl connectionControl;
private MockView view;
@@ -30,6 +31,7 @@ public class NetworkRoundControlTest {
private GameSettings gameSettings;
+ /** */
@Before
public void setup() {
AIControl.useBackgroundThread = false;
@@ -46,6 +48,7 @@ public class NetworkRoundControlTest {
connectionControl = new MockConnectionControl();
}
+ /** */
@Test
public void testHostRound() {
gameSettings.getPlayerList().get(1).setType(Type.COMPUTER);
@@ -140,6 +143,7 @@ public class NetworkRoundControlTest {
assertFalse(connectionControl.turnEnded);
}
+ /** */
@Test
public void testClientRound() {
gameSettings.getPlayerList().get(0).setType(Type.NETWORK);
diff --git a/test/jrummikub/control/network/NetworkTurnControlTest.java b/test/jrummikub/control/network/NetworkTurnControlTest.java
index 9ed4bdd..8920848 100644
--- a/test/jrummikub/control/network/NetworkTurnControlTest.java
+++ b/test/jrummikub/control/network/NetworkTurnControlTest.java
@@ -23,6 +23,7 @@ import jrummikub.view.MockView;
import org.junit.Before;
import org.junit.Test;
+/** */
public class NetworkTurnControlTest {
private MockConnectionControl connectionControl;
private MockView view;
@@ -34,6 +35,7 @@ public class NetworkTurnControlTest {
private boolean fired;
+ /** */
@Before
public void setup() {
gameSettings = new GameSettings();
@@ -51,6 +53,7 @@ public class NetworkTurnControlTest {
turnControl = new NetworkTurnControl(connectionControl);
}
+ /** */
@Test
public void testTableUpdate() {
turnControl.setup(new TurnInfo(roundState, TurnMode.NORMAL_TURN, true),
@@ -71,6 +74,7 @@ public class NetworkTurnControlTest {
assertEquals(1, n);
}
+ /** */
@Test
public void testRedeal() {
turnControl.getRedealEvent().add(new IListener() {
diff --git a/test/jrummikub/control/turn/AIControlTest.java b/test/jrummikub/control/turn/AIControlTest.java
index f2c567e..2787e76 100644
--- a/test/jrummikub/control/turn/AIControlTest.java
+++ b/test/jrummikub/control/turn/AIControlTest.java
@@ -121,6 +121,7 @@ public class AIControlTest {
assertEquals(0, roundState.getActivePlayer().getHand().getSize());
}
+ /** */
@Test
public void testWithStonesOnTable() {
roundState.getActivePlayer().setLaidOut(true);