From d697ab4facb295e3555d884250d010ceb7b8fc74 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sun, 16 Apr 2017 19:39:57 +0200 Subject: Simplify Requirements.isAffordedBy() signature --- .../java/org/luxons/sevenwonders/game/cards/RequirementsTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'backend/src/test') diff --git a/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java b/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java index a6e5151d..db8a016a 100644 --- a/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java +++ b/backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java @@ -38,7 +38,7 @@ public class RequirementsTest { Table table = new Table(Collections.singletonList(board)); assertEquals(boardGold >= requiredGold, requirements.isAffordedBy(board)); - assertEquals(boardGold >= requiredGold, requirements.isAffordedBy(table, 0, Collections.emptyList())); + assertEquals(boardGold >= requiredGold, requirements.isAffordedBy(board, Collections.emptyList())); assertEquals(boardGold >= requiredGold, requirements.couldBeAffordedBy(table, 0)); } @@ -52,7 +52,7 @@ public class RequirementsTest { Table table = new Table(Collections.singletonList(board)); assertEquals(initialResource == requiredResource, requirements.isAffordedBy(board)); - assertEquals(initialResource == requiredResource, requirements.isAffordedBy(table, 0, Collections.emptyList())); + assertEquals(initialResource == requiredResource, requirements.isAffordedBy(board, Collections.emptyList())); if (initialResource == requiredResource) { assertTrue(requirements.couldBeAffordedBy(table, 0)); @@ -73,8 +73,7 @@ public class RequirementsTest { Table table = new Table(Collections.singletonList(board)); assertEquals(producedResource == requiredResource, requirements.isAffordedBy(board)); - assertEquals(producedResource == requiredResource, - requirements.isAffordedBy(table, 0, Collections.emptyList())); + assertEquals(producedResource == requiredResource, requirements.isAffordedBy(board, Collections.emptyList())); if (producedResource == requiredResource) { assertTrue(requirements.couldBeAffordedBy(table, 0)); -- cgit