aboutsummaryrefslogtreecommitdiff
path: root/src/test/java
diff options
context:
space:
mode:
authorCalMWolfs <94038482+CalMWolfs@users.noreply.github.com>2024-01-21 22:38:20 +1100
committerGitHub <noreply@github.com>2024-01-21 12:38:20 +0100
commit6ada0c11bfb7f79f39a94db061f158f46e89d8d2 (patch)
tree71443e19bdf23a86ef9e5744ff92970e06d4e4a8 /src/test/java
parente5004a6748110ea35d075050cbf4a59bfe64b62b (diff)
downloadskyhanni-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.kt26
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)
+ }
+}