diff options
-rw-r--r-- | test/jrummikub/model/StoneSetTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/jrummikub/model/StoneSetTest.java b/test/jrummikub/model/StoneSetTest.java index b3d77bd..72a43f7 100644 --- a/test/jrummikub/model/StoneSetTest.java +++ b/test/jrummikub/model/StoneSetTest.java @@ -94,18 +94,17 @@ public class StoneSetTest { } // invalid Split - @Test(expected = IndexOutOfBoundsException.class) + @Test public void testSplitInvalidLow() { StoneSet testSet = createTestSet(); - testSet.splitAt(0); + assertNull(testSet.splitAt(0).getFirst()); } - @Test(expected = IndexOutOfBoundsException.class) + @Test public void testSplitInvalidHigh() { StoneSet testSet = createTestSet(); - testSet.splitAt(3); - + assertNull(testSet.splitAt(3).getSecond()); } // valid Split |