aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-03-07 01:20:43 +0100
committerGitHub <noreply@github.com>2024-03-07 01:20:43 +0100
commit84589e27e919acd6f8972bb053e209b175950cfc (patch)
tree33e168a478c85ff5170e67c88594ada2538370aa /src/test/java
parent0dd5963b30522610991bc1f75b188d7c4f8266d5 (diff)
downloadskyhanni-84589e27e919acd6f8972bb053e209b175950cfc.tar.gz
skyhanni-84589e27e919acd6f8972bb053e209b175950cfc.tar.bz2
skyhanni-84589e27e919acd6f8972bb053e209b175950cfc.zip
Interlal Change: Code cleanup (#1113)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt15
1 files changed, 3 insertions, 12 deletions
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 3a4a08c47..8bc8808af 100644
--- a/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt
+++ b/src/test/java/at/hannibal2/skyhanni/test/garden/VisitorToolTipParserTest.kt
@@ -22,10 +22,7 @@ class VisitorToolTipParserTest {
@Test
fun testParseItemsNeeded() {
- val parsedData = VisitorTooltipParser.parse(
- lore,
- GardenConfig()
- )
+ val parsedData = VisitorTooltipParser.parse(lore, GardenConfig())
assert(parsedData.itemsNeeded.isNotEmpty()) {
"Visitor items needed is ${parsedData.itemsNeeded.count()} instead of 1"
}
@@ -36,10 +33,7 @@ class VisitorToolTipParserTest {
@Test
fun testParseRewards() {
- val parsedData = VisitorTooltipParser.parse(
- lore,
- GardenConfig()
- )
+ val parsedData = VisitorTooltipParser.parse(lore, GardenConfig())
assert(parsedData.rewards.isNotEmpty()) {
"Visitor rewards is ${parsedData.rewards.count()} instead of 6"
}
@@ -62,10 +56,7 @@ class VisitorToolTipParserTest {
@Test
fun testParseCopper() {
- val parsedData = VisitorTooltipParser.parse(
- lore,
- GardenConfig()
- )
+ val parsedData = VisitorTooltipParser.parse(lore, GardenConfig())
val copper = parsedData.rewards["Copper"]
assert(copper == 23) {
"Visitor rewards does not contain 'Copper' with amount '23'"