diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 17:18:43 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 17:18:43 +0100 |
commit | 4ff21f2a306171d89f17c4c46d2f0dc38f9c6b5d (patch) | |
tree | d6576f12d0be2fdc826204eee3842b9292aa277b /src/test/java/org | |
parent | Wonders data parsing (diff) | |
download | seven-wonders-4ff21f2a306171d89f17c4c46d2f0dc38f9c6b5d.tar.gz seven-wonders-4ff21f2a306171d89f17c4c46d2f0dc38f9c6b5d.tar.bz2 seven-wonders-4ff21f2a306171d89f17c4c46d2f0dc38f9c6b5d.zip |
Fix compile error in CardTest
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java | 8 |
1 files changed, 7 insertions, 1 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 93997923..572a7ee4 100644 --- a/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java +++ b/src/test/java/org/luxons/sevenwonders/game/cards/CardTest.java @@ -1,9 +1,13 @@ package org.luxons.sevenwonders.game.cards; +import java.util.Collections; +import java.util.List; + import org.junit.Before; import org.junit.Test; import org.luxons.sevenwonders.game.Settings; import org.luxons.sevenwonders.game.boards.Board; +import org.luxons.sevenwonders.game.effects.Effect; import org.luxons.sevenwonders.game.effects.ProductionIncrease; import org.luxons.sevenwonders.game.resources.ResourceType; import org.luxons.sevenwonders.game.wonders.Wonder; @@ -34,7 +38,9 @@ public class CardTest { ProductionIncrease treeFarmEffect = new ProductionIncrease(); treeFarmEffect.getProduction().addChoice(ResourceType.WOOD, ResourceType.CLAY); - treeFarmCard = new Card("Tree Farm", Color.BROWN, treeFarmRequirements, treeFarmEffect); + List<Effect> effects = Collections.singletonList(treeFarmEffect); + + treeFarmCard = new Card("Tree Farm", Color.BROWN, treeFarmRequirements, effects); } @Test |