21 lines
455 B
Kotlin
21 lines
455 B
Kotlin
package eventDemo.externalServices
|
|
|
|
import eventDemo.Tag
|
|
import io.kotest.core.spec.style.FunSpec
|
|
import io.kotest.matchers.equals.shouldBeEqual
|
|
import redis.clients.jedis.JedisPooled
|
|
|
|
private val redisUrl = "redis://localhost:6379"
|
|
|
|
class RedisTest :
|
|
FunSpec({
|
|
tags(Tag.Redis)
|
|
|
|
test("test connection with jedis") {
|
|
JedisPooled(redisUrl).also {
|
|
it.set("test", "test")
|
|
it.get("test") shouldBeEqual "test"
|
|
}
|
|
}
|
|
})
|