diff options
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt | 2 | ||||
-rw-r--r-- | src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt b/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt index cd34234b5..276e53159 100644 --- a/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt +++ b/src/test/java/at/hannibal2/skyhanni/test/ItemUtilsTest.kt @@ -5,7 +5,7 @@ import org.junit.jupiter.api.Test class ItemUtilsTest { - val items: MutableMap<String, Pair<String, Int>> = mutableMapOf( + private val items: MutableMap<String, Pair<String, Int>> = mutableMapOf( "§5Hoe of Greatest Tilling" to Pair("§5Hoe of Greatest Tilling", 1), "§fSilver medal §8x2" to Pair("§fSilver medal", 2), "§aJacob's Ticket §8x32" to Pair("§aJacob's Ticket", 32), diff --git a/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt b/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt index 11b404e4c..cdb171aa6 100644 --- a/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt +++ b/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt @@ -28,7 +28,7 @@ class VisitorToolTipParserTest { assert(parsedData.itemsNeeded.isNotEmpty()) { "Visitor items needed is ${parsedData.itemsNeeded.count()} instead of 1" } - assert(parsedData.itemsNeeded.get("§aEnchanted Hay Bale") == 28) { + assert(parsedData.itemsNeeded["§aEnchanted Hay Bale"] == 28) { "Visitor items needed does not contain '§aEnchanted Hay Bale'" } } @@ -52,7 +52,7 @@ class VisitorToolTipParserTest { ) for ((itemName, amount) in assertions) { - assert(parsedData.rewards.get(itemName) == amount) { + assert(parsedData.rewards[itemName] == amount) { "Visitor rewards does not contain '$itemName' with amount '$amount'" } } @@ -63,7 +63,7 @@ class VisitorToolTipParserTest { val parsedData = VisitorTooltipParser.parse(lore, GardenConfig() ) - val copper = parsedData.rewards.get("Copper") + val copper = parsedData.rewards["Copper"] assert(copper == 23) { "Visitor rewards does not contain 'Copper' with amount '23'" } |