@@ -93,7 +93,6 @@ class MetaDataSerializerTest {
9393
9494 @Test
9595 fun `should handle complex objects as string representations` () {
96- // Objects that will be stored as string representations
9796 val now = Instant .now()
9897 val uuid = UUID .randomUUID()
9998
@@ -149,7 +148,6 @@ class MetaDataSerializerTest {
149148 val serialized = jsonSerializer.serialize(metaData, String ::class .java)
150149 val deserialized = jsonSerializer.deserialize<String , MetaData >(serialized)
151150
152- // These might be converted to actual numbers/booleans
153151 assertNotNull(deserialized?.get(" numberString" ))
154152 assertNotNull(deserialized?.get(" booleanString" ))
155153 }
@@ -215,8 +213,7 @@ class MetaDataSerializerTest {
215213 }
216214
217215 @Test
218- fun `should handle custom objects in MetaData` () {
219- // Define a custom object class for testing
216+ fun `should handle custom objects in MetaData as Strings` () {
220217 data class Person (val name : String , val age : Int )
221218
222219 val person = Person (" John Doe" , 30 )
@@ -228,11 +225,8 @@ class MetaDataSerializerTest {
228225
229226 assertEquals(metaData.size, deserialized!! .size)
230227
231- // The custom object will be serialized as a string
232228 val deserializedValue = deserialized[" personValue" ]
233229 assertTrue(deserializedValue is String )
234-
235- // Verify the string representation contains the object properties
236230 val valueAsString = deserializedValue.toString()
237231 assertTrue(valueAsString.contains(" John Doe" ))
238232 assertTrue(valueAsString.contains(" 30" ))
0 commit comments