Testing for new split behavior

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@86 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-05-03 19:06:14 +02:00
parent 54fa9085e7
commit a39b31d893

View file

@ -94,18 +94,17 @@ public class StoneSetTest {
} }
// invalid Split // invalid Split
@Test(expected = IndexOutOfBoundsException.class) @Test
public void testSplitInvalidLow() { public void testSplitInvalidLow() {
StoneSet testSet = createTestSet(); StoneSet testSet = createTestSet();
testSet.splitAt(0); assertNull(testSet.splitAt(0).getFirst());
} }
@Test(expected = IndexOutOfBoundsException.class) @Test
public void testSplitInvalidHigh() { public void testSplitInvalidHigh() {
StoneSet testSet = createTestSet(); StoneSet testSet = createTestSet();
testSet.splitAt(3); assertNull(testSet.splitAt(3).getSecond());
} }
// valid Split // valid Split