diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2024-01-21 22:38:20 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 12:38:20 +0100 |
commit | 6ada0c11bfb7f79f39a94db061f158f46e89d8d2 (patch) | |
tree | 71443e19bdf23a86ef9e5744ff92970e06d4e4a8 /src/test/java | |
parent | e5004a6748110ea35d075050cbf4a59bfe64b62b (diff) | |
download | skyhanni-6ada0c11bfb7f79f39a94db061f158f46e89d8d2.tar.gz skyhanni-6ada0c11bfb7f79f39a94db061f158f46e89d8d2.tar.bz2 skyhanni-6ada0c11bfb7f79f39a94db061f158f46e89d8d2.zip |
fix tests and bring it back (#943)
Bring back the deleted test and fix the issue causing it. #943
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/at/hannibal2/skyhanni/test/ItemModifierTest.kt | 26 |
1 files changed, 26 insertions, 0 deletions
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) + } +} |