diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:39:57 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-04-16 19:39:57 +0200 |
commit | d697ab4facb295e3555d884250d010ceb7b8fc74 (patch) | |
tree | 3222cd5751e431280bd6e0509f52563ac834af67 /backend/src/test/java/org/luxons | |
parent | Reword confusing exception message (diff) | |
download | seven-wonders-d697ab4facb295e3555d884250d010ceb7b8fc74.tar.gz seven-wonders-d697ab4facb295e3555d884250d010ceb7b8fc74.tar.bz2 seven-wonders-d697ab4facb295e3555d884250d010ceb7b8fc74.zip |
Simplify Requirements.isAffordedBy() signature
Diffstat (limited to 'backend/src/test/java/org/luxons')
-rw-r--r-- | backend/src/test/java/org/luxons/sevenwonders/game/cards/RequirementsTest.java | 7 |
1 files changed, 3 insertions, 4 deletions
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)); |