From 2762309c42a15cbcbc9f04e3d91b7bcf9a6d9071 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sat, 10 Dec 2016 11:22:23 +0100 Subject: Simplify numeric effects creation --- src/test/java/org/luxons/sevenwonders/game/effects/EffectTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/test') 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()); -- cgit