mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 00:38:21 +00:00
8fe09880b7
Behaviour moved into the api plugin.
17 lines
491 B
Kotlin
17 lines
491 B
Kotlin
import org.apollo.cache.def.ItemDefinition
|
|
import org.apollo.game.plugin.api.Definitions
|
|
import org.apollo.game.plugin.testing.KotlinPluginTest
|
|
import org.assertj.core.api.Assertions.assertThat
|
|
import org.junit.Test
|
|
|
|
class NamedLookupTests : KotlinPluginTest() {
|
|
@Test
|
|
fun itemLookup() {
|
|
val testItem = ItemDefinition(0)
|
|
testItem.name = "sword"
|
|
|
|
ItemDefinition.init(arrayOf(testItem))
|
|
|
|
assertThat(Definitions.item("sword")).isEqualTo(testItem)
|
|
}
|
|
} |