From a39b31d893dc28b5e3e8d282ee421c10e9a70f06 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Tue, 3 May 2011 19:06:14 +0200 Subject: Testing for new split behavior git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@86 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/StoneSetTest.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/jrummikub/model') 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 -- cgit v1.2.3