File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import com.fasterxml.jackson.module.kotlin.jsonMapper
55import com.fasterxml.jackson.module.kotlin.kotlinModule
66import com.fasterxml.jackson.module.kotlin.readValue
77import com.fasterxml.jackson.module.kotlin.test.expectFailure
8- import org.junit.ComparisonFailure
98import org.junit.jupiter.api.Test
109import kotlin.test.assertEquals
1110
@@ -19,14 +18,14 @@ class GitHub478Test {
1918
2019 @Test
2120 fun omitsDefaultValueWhenSerializing () {
22- expectFailure<ComparisonFailure >(" GitHub478 has been fixed!" ) {
21+ expectFailure<AssertionError >(" GitHub478 has been fixed!" ) {
2322 assertEquals(""" {}""" , mapper.writeValueAsString(Data ()))
2423 }
2524 }
2625
2726 @Test
2827 fun serializesNonDefaultValue () {
29- expectFailure<ComparisonFailure >(" GitHub478 has been fixed!" ) {
28+ expectFailure<AssertionError >(" GitHub478 has been fixed!" ) {
3029 assertEquals(""" {"flag": false}""" , mapper.writeValueAsString(Data (flag = false )))
3130 }
3231 }
You can’t perform that action at this time.
0 commit comments