datasourcex-kotest
Kotest test support for sl4jx-kotlin clients: a MountableExtension that runs a Caplin Liberator inside a Testcontainers container for the lifetime of a spec.
See also
Samples
object :
FunSpec(
{
// Starts a Liberator in a Testcontainers container for the lifetime of the spec.
val liberator = install(LiberatorContainerExtension())
test("fetches a record from the containerised Liberator") {
val connection = liberator.connect("admin")
connection.connect()
connection.awaitConnected()
val info =
connection.getSubject(Subject("SYSTEM", "INFO")).filterIsUpdate().first()
println(info)
connection.disconnect()
}
},
) {}Content copied to clipboard