Skip to content

Commit cebd206

Browse files
committed
Make test values distinguishable
1 parent be06eac commit cebd206

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/KClassSerializerDeserializerTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)