File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,22 +24,22 @@ class KClassSerializerDeserializerTest {
2424
2525 @Test
2626 fun `test custom serializer expecting object serialized with rounding serializer applied` () {
27- val jsonString = objectMapper.writeValueAsString(TestDoubleData (nonNullVal = 1.5567 , nullVal = 1.5567 ))
27+ val jsonString = objectMapper.writeValueAsString(TestDoubleData (nonNullVal = 1.5567 , nullVal = 1.5678 ))
2828 val testResult = objectMapper.readValue(jsonString, TestDoubleData ::class .java)
2929 assertThat(testResult.nonNullVal, equalTo(1.56 ))
30- assertThat(testResult.nullVal, equalTo(1.56 ))
30+ assertThat(testResult.nullVal, equalTo(1.57 ))
3131 }
3232
3333 @Test
3434 fun `test custom deserializer expecting object deserialized with rounding deserializer applied` () {
3535 val testResult = objectMapper.readValue<TestDoubleData >("""
3636 {
3737 "nonNullVal":1.5567,
38- "nullVal":1.5567
38+ "nullVal":1.5678
3939 }
4040 """ .trimIndent())
4141 assertThat(testResult.nonNullVal, equalTo(1.56 ))
42- assertThat(testResult.nullVal, equalTo(1.56 ))
42+ assertThat(testResult.nullVal, equalTo(1.57 ))
4343 }
4444}
4545
You can’t perform that action at this time.
0 commit comments