summaryrefslogtreecommitdiffstats
path: root/test/jrummikub/model/StoneHeapTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/jrummikub/model/StoneHeapTest.java')
-rw-r--r--test/jrummikub/model/StoneHeapTest.java20
1 files changed, 15 insertions, 5 deletions
diff --git a/test/jrummikub/model/StoneHeapTest.java b/test/jrummikub/model/StoneHeapTest.java
index 01f5da3..9fd375a 100644
--- a/test/jrummikub/model/StoneHeapTest.java
+++ b/test/jrummikub/model/StoneHeapTest.java
@@ -8,21 +8,29 @@ import java.util.Map;
import org.junit.*;
import static org.junit.Assert.*;
+/**
+ * Tests for {@link StoneHeap}
+ */
public class StoneHeapTest {
private StoneHeap testHeap;
+ /** */
@Before
public void createHeap() {
testHeap = new StoneHeap();
}
- // Is the right number of Stones in heap?
+ /**
+ * Is the right number of Stones in heap?
+ */
@Test
public void fullStoneHeap() {
assertEquals(106, testHeap.heap.size());
}
- // Enough stones of each color in heap?
+ /**
+ * Enough stones of each color in heap?
+ */
@Test
public void fullColor() {
Map<StoneColor, Integer> counters = new HashMap<StoneColor, Integer>();
@@ -40,7 +48,9 @@ public class StoneHeapTest {
}
}
- // Enough Jokers?
+ /**
+ * Enough Jokers?
+ */
@Test
public void fullJoker() {
int countJoker = 0;
@@ -51,14 +61,14 @@ public class StoneHeapTest {
assertEquals(2, countJoker);
}
- // Draw Stone Test
+ /** */
@Test
public void drawStoneTest() {
assertNotNull(testHeap.drawStone());
assertEquals(105, testHeap.heap.size());
}
- // Draw Stones Test
+ /** */
@Test
public void drawStonesTest() {
List<Stone> testStones = testHeap.drawStones(5);