From 6ada0c11bfb7f79f39a94db061f158f46e89d8d2 Mon Sep 17 00:00:00 2001 From: CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> Date: Sun, 21 Jan 2024 22:38:20 +1100 Subject: fix tests and bring it back (#943) Bring back the deleted test and fix the issue causing it. #943 --- .../at/hannibal2/skyhanni/test/ItemModifierTest.kt | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt (limited to 'src/test/java') diff --git a/src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt b/src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt new file mode 100644 index 000000000..75fb59568 --- /dev/null +++ b/src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt @@ -0,0 +1,26 @@ +package at.hannibal2.skyhanni.test + +import at.hannibal2.skyhanni.utils.ItemUtils.isEnchanted +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getEnchantments +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getHotPotatoCount +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getItemUuid +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.getReforgeName +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.hasArtOfPeace +import at.hannibal2.skyhanni.utils.SkyBlockItemModifierUtils.isRecombobulated +import org.junit.jupiter.api.Test + +class ItemModifierTest { + + @Test + fun testUpgradeLevelMasterStars() { + val itemStack = TestExportTools.getTestData(TestExportTools.Item, "10starnecronhead") + assert(!itemStack.isRecombobulated()) + assert(itemStack.getReforgeName() == "ancient") + assert(itemStack.getItemUuid() == "2810b7fe-33af-4dab-bb41-b4815f5847af") + assert(itemStack.isEnchanted()) + assert(itemStack.getHotPotatoCount() == 15) + assert(itemStack.getEnchantments()?.size == 11) + assert(itemStack.hasArtOfPeace()) +// assert(itemStack.getDungeonStarCount() == 10) + } +} -- cgit