From 027656acf714c8c2015cd7a8d3b84367e4b97640 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 1 May 2011 01:05:56 +0200 Subject: StoneSet isValid fertig und getestet git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@46 72836036-5685-4462-b002-a69064685172 --- test/jrummikub/model/StoneSetTest.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'test') 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() { -- cgit v1.2.3