We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f1bd861 + 9348226 commit 9d30b7cCopy full SHA for 9d30b7c
src/test/kotlin/tools/jackson/module/kotlin/test/github/GitHub844.kt
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo
4
import tools.jackson.module.kotlin.readValue
5
import tools.jackson.module.kotlin.jsonMapper
6
import org.junit.jupiter.api.Test
7
+import tools.jackson.module.kotlin.jacksonObjectMapper
8
import kotlin.test.assertEquals
9
10
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "_type")
@@ -21,7 +22,7 @@ class GitHub844 {
21
22
}
23
"""
24
- val jacksonObjectMapper = jsonMapper()
25
+ val jacksonObjectMapper = jacksonObjectMapper()
26
val message = jacksonObjectMapper.readValue<BaseClass>(json)
27
28
assertEquals(ChildClass("Test"), message)
0 commit comments