Open-source multiplayer game server compatible with the RuneScape client
https://www.openrs2.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
586 B
22 lines
586 B
4 years ago
|
package org.openrs2.cache
|
||
4 years ago
|
|
||
|
import java.nio.file.Paths
|
||
|
import kotlin.test.Test
|
||
|
import kotlin.test.assertTrue
|
||
|
|
||
|
object StoreTest {
|
||
|
private val DISK_ROOT = Paths.get(StoreTest::class.java.getResource("disk-store/empty").toURI())
|
||
|
private val FLAT_FILE_ROOT = Paths.get(StoreTest::class.java.getResource("flat-file-store/empty").toURI())
|
||
|
|
||
|
@Test
|
||
|
fun testOpen() {
|
||
|
Store.open(DISK_ROOT).use { store ->
|
||
|
assertTrue(store is DiskStore)
|
||
|
}
|
||
|
|
||
|
Store.open(FLAT_FILE_ROOT).use { store ->
|
||
|
assertTrue(store is FlatFileStore)
|
||
|
}
|
||
|
}
|
||
|
}
|