Skip to content

Commit 356c3a3

Browse files
committed
Move to failing tests package
1 parent e898963 commit 356c3a3

File tree

1 file changed

+9
-5
lines changed
  • src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github/failing

1 file changed

+9
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
package com.fasterxml.jackson.module.kotlin.test.github
1+
package com.fasterxml.jackson.module.kotlin.test.github.failing
22

33
import com.fasterxml.jackson.annotation.JsonProperty
44
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
5+
import com.fasterxml.jackson.module.kotlin.test.expectFailure
6+
import org.junit.ComparisonFailure
57
import org.junit.Test
68
import kotlin.test.assertEquals
79

@@ -11,9 +13,11 @@ class TestGithub474 {
1113
open class Parent(@JsonProperty("parent-prop") val parent: String)
1214
class Child(@JsonProperty("child-prop") val child: String) : Parent(child)
1315

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+
}
1822
}
1923
}

0 commit comments

Comments
 (0)