From 982c2e6e2baf20eace331c19f6aef91b29e3c773 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 10 May 2011 16:31:09 +0200 Subject: =?UTF-8?q?Rechtschreibfehler=20und=20=C3=BCberfl=C3=BCssige=20pic?= =?UTF-8?q?kUp(position)=20Klasse=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@227 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/StoneTrayTest.java | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'test/jrummikub/model') diff --git a/test/jrummikub/model/StoneTrayTest.java b/test/jrummikub/model/StoneTrayTest.java index 84fc799..1ffcb8f 100644 --- a/test/jrummikub/model/StoneTrayTest.java +++ b/test/jrummikub/model/StoneTrayTest.java @@ -7,8 +7,9 @@ import jrummikub.util.Pair; import org.junit.*; import static org.junit.Assert.*; + /** - * Tests for {@link StoneTray} + * Tests for {@link StoneTray} */ public class StoneTrayTest { class Thing implements Sizeable { @@ -32,6 +33,7 @@ public class StoneTrayTest { } private StoneTray testTray; + /** */ @Before public void createTray() { @@ -146,15 +148,6 @@ public class StoneTrayTest { assertEquals(1, thirdPosition.getY(), 0.00001); } - /** */ - @Test - public void testWrongPickUp() { - Thing firstThing = new Thing(5, 5); - testTray.drop(firstThing, new Position(0, 0)); - Position testPosition = new Position(-2, -2); - assertNull(testTray.pickUp(testPosition)); - } - /** */ @Test public void testPickUpByObject() { @@ -169,18 +162,6 @@ public class StoneTrayTest { assertTrue(testTray.iterator().hasNext()); } - /** */ - @Test - public void testRightPickUp() { - Thing firstThing = new Thing(5, 5); - testTray.drop(firstThing, new Position(0, 0)); - Thing secondThing = new Thing(3, 3); - testTray.drop(secondThing, new Position(-5, -5)); - Position testPosition = new Position(3, 3); - assertSame(testTray.pickUp(testPosition), firstThing); - assertNull(testTray.pickUp(testPosition)); - } - /** */ @Test public void testIterate() { -- cgit v1.2.3