mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Remove util:lookup plugin
Behaviour moved into the api plugin.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user