File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- package com.fasterxml.jackson.module.kotlin.test.github
1
+ package com.fasterxml.jackson.module.kotlin.test.github.failing
2
2
3
3
import com.fasterxml.jackson.annotation.JsonProperty
4
4
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
5
+ import com.fasterxml.jackson.module.kotlin.test.expectFailure
6
+ import org.junit.ComparisonFailure
5
7
import org.junit.Test
6
8
import kotlin.test.assertEquals
7
9
@@ -11,9 +13,11 @@ class TestGithub474 {
11
13
open class Parent (@JsonProperty(" parent-prop" ) val parent : String )
12
14
class Child (@JsonProperty(" child-prop" ) val child : String ) : Parent(child)
13
15
14
- assertEquals(
15
- """ {"child-prop":"foo","parent-prop":"foo"}""" ,
16
- jacksonObjectMapper().writeValueAsString(Child (" foo" ))
17
- )
16
+ expectFailure<ComparisonFailure >(" GitHub #474 has been fixed!" ) {
17
+ assertEquals(
18
+ """ {"child-prop":"foo","parent-prop":"foo"}""" ,
19
+ jacksonObjectMapper().writeValueAsString(Child (" foo" ))
20
+ )
21
+ }
18
22
}
19
23
}
You can’t perform that action at this time.
0 commit comments