|
|
|
@ -3,12 +3,12 @@ package org.openrs2.cache |
|
|
|
|
import io.netty.buffer.ByteBufAllocator |
|
|
|
|
import io.netty.buffer.Unpooled |
|
|
|
|
import org.openrs2.buffer.use |
|
|
|
|
import java.nio.file.Paths |
|
|
|
|
import java.nio.file.Path |
|
|
|
|
import kotlin.test.Test |
|
|
|
|
import kotlin.test.assertEquals |
|
|
|
|
|
|
|
|
|
object Js5MasterIndexTest { |
|
|
|
|
private val ROOT = Paths.get(FlatFileStoreTest::class.java.getResource("master-index").toURI()) |
|
|
|
|
private val ROOT = Path.of(FlatFileStoreTest::class.java.getResource("master-index").toURI()) |
|
|
|
|
private val encoded = byteArrayOf(0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 5, 0, 0, 0, 4) |
|
|
|
|
private val decoded = Js5MasterIndex( |
|
|
|
|
mutableListOf( |
|
|
|
|