Skip to content

File tree

1 file changed

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

1 file changed

+2
-3
lines changed

src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing/GitHub478.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import com.fasterxml.jackson.module.kotlin.jsonMapper
55
import com.fasterxml.jackson.module.kotlin.kotlinModule
66
import com.fasterxml.jackson.module.kotlin.readValue
77
import com.fasterxml.jackson.module.kotlin.test.expectFailure
8-
import org.junit.ComparisonFailure
98
import org.junit.jupiter.api.Test
109
import 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
}

0 commit comments

Comments
 (0)