diff --git a/centurion-avro/src/test/kotlin/com/sksamuel/centurion/avro/io/CachedReflectionSerdeFactoryTest.kt b/centurion-avro/src/test/kotlin/com/sksamuel/centurion/avro/io/CachedReflectionSerdeFactoryTest.kt new file mode 100644 index 0000000..43d2fe6 --- /dev/null +++ b/centurion-avro/src/test/kotlin/com/sksamuel/centurion/avro/io/CachedReflectionSerdeFactoryTest.kt @@ -0,0 +1,15 @@ +package com.sksamuel.centurion.avro.io + +import com.sksamuel.centurion.avro.encoders.User +import io.kotest.core.spec.style.FunSpec +import io.kotest.matchers.types.shouldBeSameInstanceAs + +class CachedReflectionSerdeFactoryTest : FunSpec({ + + test("should cache instances") { + val serde1 = CachedReflectionSerdeFactory.create() + val serde2 = CachedReflectionSerdeFactory.create() + serde1.shouldBeSameInstanceAs(serde2) + } + +})