summaryrefslogtreecommitdiffstats
path: root/test/jrummikub
diff options
context:
space:
mode:
authorJannis Harder <harder@informatik.uni-luebeck.de>2011-05-03 19:06:14 +0200
committerJannis Harder <harder@informatik.uni-luebeck.de>2011-05-03 19:06:14 +0200
commita39b31d893dc28b5e3e8d282ee421c10e9a70f06 (patch)
tree8e036174461abae0f4a4572eae083ca5ec1e9674 /test/jrummikub
parent54fa9085e7bb5516b7d1ee3b11e6c730f2e1752f (diff)
downloadJRummikub-a39b31d893dc28b5e3e8d282ee421c10e9a70f06.tar
JRummikub-a39b31d893dc28b5e3e8d282ee421c10e9a70f06.zip
Testing for new split behavior
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@86 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r--test/jrummikub/model/StoneSetTest.java9
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