diff options
author | Walker Selby <git@walkerselby.com> | 2023-11-22 12:10:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-22 13:10:51 +0100 |
commit | 5c9cbdba458638ae962ccf92e750ebdcea718478 (patch) | |
tree | f4ab8c3f6abe71d4e056125f582cfde465fd79d0 /src/test | |
parent | 7137b0a07ba4c4efe65282a18ebc68f25ffa1796 (diff) | |
download | skyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.tar.gz skyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.tar.bz2 skyhanni-5c9cbdba458638ae962ccf92e750ebdcea718478.zip |
Internal Change: More Random Cleanup (#724)
More Random Cleanup #724
Diffstat (limited to 'src/test')
-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'" } |