mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 16:49:11 +00:00
17 lines
489 B
Kotlin
17 lines
489 B
Kotlin
import org.apollo.cache.def.ItemDefinition
|
|
import org.apollo.game.plugin.testing.KotlinPluginTest
|
|
import org.apollo.game.plugin.util.lookup.lookup_item
|
|
import org.assertj.core.api.Assertions.assertThat
|
|
import org.junit.Test
|
|
|
|
class LookupTests : KotlinPluginTest() {
|
|
@Test
|
|
fun itemLookup() {
|
|
val testItem = ItemDefinition(0)
|
|
testItem.name = "sword"
|
|
|
|
ItemDefinition.init(arrayOf(testItem))
|
|
|
|
assertThat(lookup_item("sword")).isEqualTo(testItem)
|
|
}
|
|
} |