Skip to content

Commit 07f2adf

Browse files
authored
Merge pull request #992 from k163377/default-mapper2
Replace the non-custom mapper with defaultMapper
2 parents 4e059b1 + 665566f commit 07f2adf

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/GitHub281.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package com.fasterxml.jackson.module.kotlin.test.github
33
import com.fasterxml.jackson.annotation.JsonIdentityInfo
44
import com.fasterxml.jackson.annotation.JsonTypeInfo
55
import com.fasterxml.jackson.annotation.ObjectIdGenerators
6+
import com.fasterxml.jackson.module.kotlin.defaultMapper
67
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
78
import com.fasterxml.jackson.module.kotlin.readValue
89
import com.fasterxml.jackson.module.kotlin.testPrettyWriter
@@ -47,7 +48,7 @@ class GitHub281 {
4748

4849
@Test
4950
fun `test reading involving type, id and object`() {
50-
val output = jacksonObjectMapper().readValue<List<NumberValue>>(json)
51+
val output = defaultMapper.readValue<List<NumberValue>>(json)
5152

5253
assertEquals(2, output.size)
5354
val (a, b) = output

0 commit comments

Comments
 (0)