From 39406126081fa7ffa2d5c8e1b18398fcd56be5c2 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 04:13:58 +0200 Subject: Warning-Freies Projekt :-) git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@218 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/PositionTest.java | 10 ++++++++++ test/jrummikub/model/StoneSetTest.java | 3 +++ 2 files changed, 13 insertions(+) (limited to 'test/jrummikub/model') 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), -- cgit v1.2.3