OK, so one more question... I'm trying to replicat...
# spek
m
OK, so one more question... I'm trying to replicate the following code/behavior in Spek:
Copy code
class ProfileTests {
    companion object {
        val userProfileRedisContainer = KGenericContainer("redis:latest").withExposedPorts(6379)!!

        @BeforeClass
        @JvmStatic
        fun classSetup() {
            userProfileRedisContainer.start()
        }

        @AfterClass
        @JvmStatic
        fun classShutdown() {
            userProfileRedisContainer.stop()
        }
    }

    private val userProfileRedis = makeRedisHandler(userProfileRedisContainer.containerIpAddress, userProfileRedisContainer.getMappedPort(6379))