diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 11:22:23 +0100 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2016-12-10 11:22:48 +0100 |
commit | 2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071 (patch) | |
tree | aa565679d6a23fa1376ad01bde26134a628c4db1 /src/test/java/org/luxons | |
parent | Make Effect an interface instead of abstract class (diff) | |
download | seven-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')
-rw-r--r-- | src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java | 3 |
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()); |