diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-10 03:54:48 +0200 |
commit | 3b49b2053e9f9d26b73db0ffc8380a60706ee095 (patch) | |
tree | 9678d5abb4af070bbf0fd89c684e91f5fd472c31 /test/jrummikub/model/StoneHeapTest.java | |
parent | 4a860e53cf6f2f97f18785673399498609e6504b (diff) | |
download | JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.tar JRummikub-3b49b2053e9f9d26b73db0ffc8380a60706ee095.zip |
Added all missing comments
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/model/StoneHeapTest.java')
-rw-r--r-- | test/jrummikub/model/StoneHeapTest.java | 20 |
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); |