summaryrefslogtreecommitdiff
path: root/src/test/java/org/luxons/sevenwonders
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2016-12-10 11:22:23 +0100
committerJoffrey BION <joffrey.bion@gmail.com>2016-12-10 11:22:48 +0100
commit2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071 (patch)
treeaa565679d6a23fa1376ad01bde26134a628c4db1 /src/test/java/org/luxons/sevenwonders
parentMake Effect an interface instead of abstract class (diff)
downloadseven-wonders-2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071.tar.gz
seven-wonders-2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071.tar.bz2
seven-wonders-2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071.zip
Simplify numeric effects creation
Diffstat (limited to 'src/test/java/org/luxons/sevenwonders')
-rw-r--r--src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java b/src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java
index 25dfcf38..8dee5a77 100644
--- a/src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java
+++ b/src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java
@@ -55,8 +55,7 @@ public class EffectTest {
@Test
public void testGoldIncrease() {
- GoldIncrease effect = new GoldIncrease();
- effect.setAmount(6);
+ GoldIncrease effect = new GoldIncrease(6);
effect.apply(board, leftBoard, rightBoard);
assertEquals(INITIAL_GOLD + 6, board.getGold());
assertEquals(INITIAL_GOLD, leftBoard.getGold());
bgstack15