Skip to content

Commit

Permalink
Fix for merge error in #709
Browse files Browse the repository at this point in the history
  • Loading branch information
k163377 committed Sep 15, 2023
1 parent db17670 commit de9d1b5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package tools.jackson.module.kotlin.test.github.failing

import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import org.junit.Test
import tools.jackson.module.kotlin.jacksonObjectMapper
import tools.jackson.module.kotlin.readValue
import kotlin.test.assertEquals

// Also see https://github.com/FasterXML/jackson-databind/issues/3392
Expand All @@ -14,9 +14,9 @@ class Github242 {
// Since `nullish` is entered for a `non-null` value, deserialization is expected to fail,
// but at the moment the process continues with the default value set on the `databind`.
@Test
fun `test value throws - Int`(){
val v0 =objectMapper.readValue<IntValue>("{}")
val v1 =objectMapper.readValue<IntValue>("{\"value\":null}")
fun `test value throws - Int`() {
val v0 = objectMapper.readValue<IntValue>("{}")
val v1 = objectMapper.readValue<IntValue>("{\"value\":null}")

assertEquals(0, v0.value)
assertEquals(v0, v1)
Expand Down

0 comments on commit de9d1b5

Please sign in to comment.