Skip to content

Commit 452bf26

Browse files
committed
Fix Kotlin test for #14 (expected outcome updated)
1 parent 05726e6 commit 452bf26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/test/kotlin/com/fasterxml/jackson/failing/Jackson212MissingConstructorTest.kt renamed to src/test/kotlin/com/fasterxml/jackson/integtest/kotlin/Jackson212MissingConstructorTest.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.fasterxml.jackson.failing
1+
package com.fasterxml.jackson.integtest.kotlin
22

33
import com.fasterxml.jackson.dataformat.xml.JacksonXmlModule
44
import com.fasterxml.jackson.dataformat.xml.XmlFactory
@@ -21,7 +21,9 @@ class Jackson212MissingConstructorTest : BaseTest()
2121
val xml = "<product><stuff></stuff></product>"
2222
val product: Product = mapper.readValue(xml, Product::class.java)
2323

24-
assertEquals(Product(null), product)
24+
// 20-Jan-2023, tatu: With Properties-based Creator, this was wrong:
25+
//assertEquals(Product(null), product)
26+
assertEquals(Product(Stuff(null)), product)
2527
}
2628

2729
private data class Stuff(val str: String?)

0 commit comments

Comments
 (0)