diff options
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java b/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java index 572a7ee4..62bf376d 100644 --- a/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java +++ b/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java @@ -12,7 +12,6 @@ import org.luxons.sevenwonders.game.effects.ProductionIncrease; import org.luxons.sevenwonders.game.resources.ResourceType; import org.luxons.sevenwonders.game.wonders.Wonder; -import static junit.framework.TestCase.assertTrue; import static org.junit.Assert.assertEquals; public class CardTest { @@ -40,7 +39,7 @@ public class CardTest { List<Effect> effects = Collections.singletonList(treeFarmEffect); - treeFarmCard = new Card("Tree Farm", Color.BROWN, treeFarmRequirements, effects); + treeFarmCard = new Card("Tree Farm", Color.BROWN, treeFarmRequirements, "", effects, null); } @Test @@ -51,9 +50,8 @@ public class CardTest { @Test public void playCardCostingMoney() { board.setGold(3); - treeFarmCard.play(board, leftBoard, rightBoard); + treeFarmCard.applyTo(board, leftBoard, rightBoard); assertEquals(2, board.getGold()); - assertTrue(board.getPlayedCards().contains(treeFarmCard)); } } |