diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-01 01:05:56 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-01 01:05:56 +0200 |
commit | 027656acf714c8c2015cd7a8d3b84367e4b97640 (patch) | |
tree | 1318e26b0c2c6808779042caad84494f7cc06966 /test/jrummikub | |
parent | d028cb8a0c538c45f7bf1494d51e31528d5aa9f0 (diff) | |
download | JRummikub-027656acf714c8c2015cd7a8d3b84367e4b97640.tar JRummikub-027656acf714c8c2015cd7a8d3b84367e4b97640.zip |
StoneSet isValid fertig und getestet
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@46 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub')
-rw-r--r-- | test/jrummikub/model/StoneSetTest.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/jrummikub/model/StoneSetTest.java b/test/jrummikub/model/StoneSetTest.java index d929783..b2d6a46 100644 --- a/test/jrummikub/model/StoneSetTest.java +++ b/test/jrummikub/model/StoneSetTest.java @@ -60,6 +60,7 @@ public class StoneSetTest { assertSet(false, Arrays.asList(new Stone(RED), new Stone(BLACK), new Stone(1, RED), new Stone(2, RED))); } + @Test public void sameColor() { assertSet(false, Arrays.asList(new Stone(1, RED), new Stone(1, RED), @@ -71,23 +72,26 @@ public class StoneSetTest { @Test public void incorrectOrder() { assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(6, RED), - new Stone(5, RED))); + new Stone(5, RED))); assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(6, RED), - new Stone(RED))); + new Stone(RED))); assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(RED), new Stone(5, RED))); } - + @Test public void otherInvalid() { - + assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, RED), - new Stone(7, RED))); + new Stone(7, RED))); assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, BLUE), new Stone(6, RED))); assertSet(false, Arrays.asList(new Stone(4, RED), new Stone(5, RED))); - + assertSet(false, Arrays.asList(new Stone(4, BLUE), new Stone(5, RED), + new Stone(6, RED))); + } + // invalid Split @Test(expected = AssertionError.class) public void testSplitInvalidLow() { |