diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-03 19:06:15 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-03 19:06:15 +0200 |
commit | 7ef7a4ce21d51b8c07354e1c5ec26a17eb3dc70a (patch) | |
tree | 2fe31b152be9710aa27906f5be5524805bde2f18 | |
parent | 1bed4a77a54f6662ecfe208ca6102ff011b792fa (diff) | |
download | JRummikub-7ef7a4ce21d51b8c07354e1c5ec26a17eb3dc70a.tar JRummikub-7ef7a4ce21d51b8c07354e1c5ec26a17eb3dc70a.zip |
Test: Ignore dropping of null on StoneTrays
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@88 72836036-5685-4462-b002-a69064685172
-rw-r--r-- | test/jrummikub/model/StoneTrayTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 |