From 7ef7a4ce21d51b8c07354e1c5ec26a17eb3dc70a Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 3 May 2011 19:06:15 +0200 Subject: Test: Ignore dropping of null on StoneTrays git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@88 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/StoneTrayTest.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/jrummikub/model') diff --git a/test/jrummikub/model/StoneTrayTest.java b/test/jrummikub/model/StoneTrayTest.java index 3456229..7ae711c 100644 --- a/test/jrummikub/model/StoneTrayTest.java +++ b/test/jrummikub/model/StoneTrayTest.java @@ -49,6 +49,12 @@ public class StoneTrayTest { assertEquals(42, secondPosition.getX(), 0.00001); assertEquals(8.5, secondPosition.getY(), 0.00001); } + + @Test + public void testDropNull() { + testTray.drop(null, new Position(0,0)); + assertFalse(testTray.iterator().hasNext()); + } // Leftshift @Test -- cgit v1.2.3