Skip to content
Merged

2.18 #901

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,15 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<!--
This setting is necessary because the project includes tests that do not match the default run target class name.
https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html#inclusions
-->
<include>com.fasterxml.jackson.module.kotlin.**</include>
</includes>
</configuration>
</plugin>
<plugin>
<!-- Inherited from oss-base. Generate PackageVersion.java.-->
Expand Down
5 changes: 5 additions & 0 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ WrongWrong (@k163377)
* #839: Remove useKotlinPropertyNameForGetter and unify with kotlinPropertyNameAsImplicitName
* #835: Remove old SingletonSupport class and unified with KotlinFeature.SingletonSupport

# 2.18.3 (not yet released)

WrongWrong (@k163377)
* #900: Fixed an issue where some tests were not running

# 2.18.0 (26-Sep-2024)

WrongWrong (@k163377)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,9 @@ class GitHub625 {

@Test
fun failing() {
val writer = jacksonObjectMapper().testPrettyWriter()
val writer = jacksonObjectMapper()
val json = writer.writeValueAsString(FailingDto())

assertNotEquals("{ }", json)
assertEquals(
"""
{
"nullableObject1" : null,
"nullableObject2" : null,
"map" : {
"nullableObject" : null
},
"mapGetter" : {
"nullableObject" : null
},
"nullableObjectGetter2" : null,
"nullableObjectGetter1" : null
}
""".trimIndent(),
json
)
assertNotEquals("{}", json)
}
}