Files
event-demo/src/test/kotlin/eventDemo/externalServices/RedisTest.kt
2025-04-14 23:40:31 +02:00

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"
}
}
})