From 4d8c7305ed0d6484d3e895f1a8a9b1da9795896a Mon Sep 17 00:00:00 2001 From: Danielle Voznyy <dan.voznyy@gmail.com> Date: Sun, 28 Jul 2024 21:30:44 -0400 Subject: [PATCH] fix: Fix PolymorphicListAsMapSerializer.Config in tests --- .../com/mineinabyss/geary/prefabs/GearyEntitySerializerTest.kt | 2 +- .../kotlin/com/mineinabyss/geary/prefabs/SerializerTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/GearyEntitySerializerTest.kt b/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/GearyEntitySerializerTest.kt index ed875686..82cd0247 100644 --- a/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/GearyEntitySerializerTest.kt +++ b/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/GearyEntitySerializerTest.kt @@ -47,7 +47,7 @@ class GearyEntitySerializerTest { // act val entity = format.decodeFromString(GearyEntitySerializer, file, overrideSerializersModule = SerializersModule { - provideConfig(PolymorphicListAsMapSerializer.Config(namespaces = listOf("test"))) + provideConfig(PolymorphicListAsMapSerializer.Config<Any>(namespaces = listOf("test"))) }) // assert diff --git a/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/SerializerTest.kt b/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/SerializerTest.kt index 1f33cd5e..77b777dc 100644 --- a/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/SerializerTest.kt +++ b/addons/geary-prefabs/src/jvmTest/kotlin/com/mineinabyss/geary/prefabs/SerializerTest.kt @@ -40,7 +40,7 @@ class SerializerTest { subclass(B::class) subclass(SubSerializers::class) } - provideConfig(PolymorphicListAsMapSerializer.Config(namespaces = listOf("test"))) + provideConfig(PolymorphicListAsMapSerializer.Config<Any>(namespaces = listOf("test"))) }) val mapSerializer = PolymorphicListAsMapSerializer(PolymorphicSerializer(Components::class))