File tree 1 file changed +5
-5
lines changed
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/github
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ import kotlin.test.assertEquals
9
9
10
10
class TestGithub396 {
11
11
/* *
12
- * Succeeds in Jackson 2.11.x, but fails in Jackson 2.12.0
12
+ * Succeeds in Jackson 2.11.x, but fails in Jackson 2.12.0.
13
+ * But succeeds again in 2.15.0.
14
+ *
13
15
* See https://github.com/FasterXML/jackson-module-kotlin/issues/396
14
16
*/
15
17
@Test
16
18
fun testMissingConstructor () {
17
19
val mapper = XmlMapper ().registerKotlinModule()
18
20
19
21
val xml = " <product><stuff></stuff></product>"
20
- expectFailure<MismatchedInputException >(" GitHub #396 has been fixed!" ) {
21
- val product: Product = mapper.readValue(xml, Product ::class .java)
22
+ val product: Product = mapper.readValue(xml, Product ::class .java)
22
23
23
- assertEquals(Product (null ), product)
24
- }
24
+ assertEquals(Product (Stuff (null )), product)
25
25
}
26
26
27
27
private data class Stuff (val str : String? )
You can’t perform that action at this time.
0 commit comments