Removed deprecated Stone constructor

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@79 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-05-03 17:13:12 +02:00
parent 2b09ff6ec5
commit 7edb66d4ff
2 changed files with 4 additions and 11 deletions

View file

@ -34,13 +34,6 @@ public class Stone implements Sizeable {
this.joker = false; this.joker = false;
} }
@Deprecated
public Stone(int value, StoneColor color, boolean joker) {
this.value = value;
this.color = color;
this.joker = joker;
}
/** /**
* Returns the color of the stone. * Returns the color of the stone.
* *

View file

@ -123,9 +123,9 @@ public class StoneSetTest {
private StoneSet createTestSet() { private StoneSet createTestSet() {
List<Stone> stones = new ArrayList<Stone>(); List<Stone> stones = new ArrayList<Stone>();
stones.add(new Stone(1, BLUE, false)); stones.add(new Stone(1, BLUE));
stones.add(new Stone(1, RED, false)); stones.add(new Stone(1, RED));
stones.add(new Stone(1, BLACK, false)); stones.add(new Stone(1, BLACK));
StoneSet testSet = new StoneSet(stones); StoneSet testSet = new StoneSet(stones);
return testSet; return testSet;
} }
@ -134,7 +134,7 @@ public class StoneSetTest {
@Test @Test
public void testJoin() { public void testJoin() {
StoneSet testSet = createTestSet(); StoneSet testSet = createTestSet();
StoneSet secondSet = new StoneSet(new Stone(2, BLUE, false)); StoneSet secondSet = new StoneSet(new Stone(2, BLUE));
StoneSet joinedSet = testSet.join(secondSet); StoneSet joinedSet = testSet.join(secondSet);
// Sets have right size // Sets have right size
assertEquals(4, joinedSet.size()); assertEquals(4, joinedSet.size());