Skip to content

Commit 9d30b7c

Browse files
authored
Merge pull request #911 from k163377/databind4947
Fixed the problem that KotlinModule was not registered
2 parents f1bd861 + 9348226 commit 9d30b7c

File tree

1 file changed

+2
-1
lines changed
  • src/test/kotlin/tools/jackson/module/kotlin/test/github

1 file changed

+2
-1
lines changed

src/test/kotlin/tools/jackson/module/kotlin/test/github/GitHub844.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo
44
import tools.jackson.module.kotlin.readValue
55
import tools.jackson.module.kotlin.jsonMapper
66
import org.junit.jupiter.api.Test
7+
import tools.jackson.module.kotlin.jacksonObjectMapper
78
import kotlin.test.assertEquals
89

910
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "_type")
@@ -21,7 +22,7 @@ class GitHub844 {
2122
}
2223
"""
2324

24-
val jacksonObjectMapper = jsonMapper()
25+
val jacksonObjectMapper = jacksonObjectMapper()
2526
val message = jacksonObjectMapper.readValue<BaseClass>(json)
2627

2728
assertEquals(ChildClass("Test"), message)

0 commit comments

Comments
 (0)