diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-10 04:13:58 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-10 04:13:58 +0200 |
commit | 39406126081fa7ffa2d5c8e1b18398fcd56be5c2 (patch) | |
tree | 3d5d1e2fbdfff8afe5feaa014b6b6be2e965d018 /test/jrummikub | |
parent | 5df9b9cc4bcf2acff1e3b50e89aac7a300508050 (diff) | |
download | JRummikub-39406126081fa7ffa2d5c8e1b18398fcd56be5c2.tar JRummikub-39406126081fa7ffa2d5c8e1b18398fcd56be5c2.zip |
Warning-Freies Projekt :-)
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@218 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r-- | test/jrummikub/model/PositionTest.java | 10 | ||||
-rw-r--r-- | test/jrummikub/model/StoneSetTest.java | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/jrummikub/model/PositionTest.java b/test/jrummikub/model/PositionTest.java index 2812f9c..1f7ca5f 100644 --- a/test/jrummikub/model/PositionTest.java +++ b/test/jrummikub/model/PositionTest.java @@ -6,14 +6,24 @@ import java.util.Set; import org.junit.*;
import static org.junit.Assert.*;
+/**
+ * test functions of Position-Class
+ *
+ */
public class PositionTest {
+ /**
+ * String for debugging and testing
+ */
@Test
public void testToString() {
Position pos = new Position(6, 2);
assertEquals("Position[x=6.0,y=2.0]", pos.toString());
}
+ /**
+ * tests hashing
+ */
@Test
public void testEqualsAndHashCode() {
Position pos1 = new Position(0, 0);
diff --git a/test/jrummikub/model/StoneSetTest.java b/test/jrummikub/model/StoneSetTest.java index 2575f22..e2962d4 100644 --- a/test/jrummikub/model/StoneSetTest.java +++ b/test/jrummikub/model/StoneSetTest.java @@ -175,6 +175,9 @@ public class StoneSetTest { assertEquals(i, testSet.size()); } + /** + * String for Testing + */ @Test public void testToString() { StoneSet testSet = new StoneSet(Arrays.asList(new Stone(2, BLUE), |