From 548dd277dd8ad1ab9828f6ab1b548e962ce6530a Mon Sep 17 00:00:00 2001 From: jbion Date: Thu, 21 Feb 2019 00:52:51 +0100 Subject: Remove non idiomatic usages of lists --- .../sevenwonders/game/resources/BestPriceCalculatorTest.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'game-engine/src/test/kotlin/org') diff --git a/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/resources/BestPriceCalculatorTest.kt b/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/resources/BestPriceCalculatorTest.kt index 5d99ae00..b4c3b886 100644 --- a/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/resources/BestPriceCalculatorTest.kt +++ b/game-engine/src/test/kotlin/org/luxons/sevenwonders/game/resources/BestPriceCalculatorTest.kt @@ -14,7 +14,6 @@ import org.luxons.sevenwonders.game.test.createTransaction import org.luxons.sevenwonders.game.test.createTransactions import org.luxons.sevenwonders.game.test.testBoard import org.luxons.sevenwonders.game.test.testTable -import java.util.Arrays import kotlin.test.assertEquals class BestPriceCalculatorTest { @@ -36,7 +35,7 @@ class BestPriceCalculatorTest { val left = testBoard(STONE) val main = testBoard(STONE) val right = testBoard(WOOD) - val table = Table(Arrays.asList(main, right, left)) + val table = Table(listOf(main, right, left)) val player0 = SimplePlayer(0, table) val player1 = SimplePlayer(1, table) @@ -64,7 +63,7 @@ class BestPriceCalculatorTest { val left = testBoard(WOOD) val right = testBoard(WOOD) val opposite = testBoard(GLASS) - val table = Table(Arrays.asList(main, right, opposite, left)) + val table = Table(listOf(main, right, opposite, left)) val player0 = SimplePlayer(0, table) val player1 = SimplePlayer(1, table) @@ -93,7 +92,7 @@ class BestPriceCalculatorTest { right.production.addChoice(WOOD, CLAY) right.publicProduction.addChoice(WOOD, CLAY) - val table = Table(Arrays.asList(main, right, left)) + val table = Table(listOf(main, right, left)) val player0 = SimplePlayer(0, table) val player1 = SimplePlayer(1, table) @@ -121,7 +120,7 @@ class BestPriceCalculatorTest { right.publicProduction.addFixedResource(ORE, 1) right.publicProduction.addFixedResource(CLAY, 1) - val table = Table(Arrays.asList(main, right, left)) + val table = Table(listOf(main, right, left)) val player0 = SimplePlayer(0, table) val player1 = SimplePlayer(1, table) -- cgit