From 3b49b2053e9f9d26b73db0ffc8380a60706ee095 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 10 May 2011 03:54:48 +0200 Subject: Added all missing comments git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@213 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/HandTest.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'test/jrummikub/model/HandTest.java') diff --git a/test/jrummikub/model/HandTest.java b/test/jrummikub/model/HandTest.java index d913caf..46aa978 100644 --- a/test/jrummikub/model/HandTest.java +++ b/test/jrummikub/model/HandTest.java @@ -5,16 +5,20 @@ import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; - +/** + * Test class for {@link Hand} + */ public class HandTest { Hand hand; + /** */ @Before public void setUp() { hand = new Hand(); } + /** */ @Test public void testSimpleDrop() { Stone stone1 = new Stone(1, RED); @@ -30,6 +34,7 @@ public class HandTest { assertEquals(new Position(2.5f, 0), hand.getPosition(stone3)); } + /** */ @Test public void testSingleEdgeDrop() { Stone stone1 = new Stone(2, RED); @@ -42,6 +47,7 @@ public class HandTest { assertEquals(new Position(1, 0), hand.getPosition(stone2)); } + /** */ @Test public void testNearEdgeDrop() { Stone stone1 = new Stone(2, RED); @@ -54,6 +60,7 @@ public class HandTest { assertEquals(new Position(1, 0), hand.getPosition(stone2)); } + /** */ @Test public void testNearEdgeMiddleDrop() { Stone stone1 = new Stone(1, RED); @@ -69,6 +76,7 @@ public class HandTest { assertEquals(new Position(1, 0), hand.getPosition(stone3)); } + /** */ @Test public void testNearRightEdgeDrop() { Stone stone1 = new Stone(2, BLUE); @@ -81,6 +89,7 @@ public class HandTest { assertEquals(new Position(12, 1), hand.getPosition(stone2)); } + /** */ @Test public void testRightWrapDrop() { Stone stone1 = new Stone(12, ORANGE); @@ -93,6 +102,7 @@ public class HandTest { assertEquals(new Position(12.5f, 0), hand.getPosition(stone2)); } + /** */ @Test public void testLeftWrapDrop() { Stone stone1 = new Stone(1, ORANGE); -- cgit v1.2.3