Skip to content

Commit

Permalink
Replace Jackson KotlinModule with builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 22, 2024
1 parent 479199b commit 59a3d53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ class LobbyClientTest {
}
}

private val objectMapper: ObjectMapper = ObjectMapper().registerModule(KotlinModule()).registerModule(JavaTimeModule()).disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES).enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE);
private val objectMapper: ObjectMapper =
ObjectMapper().registerModule(KotlinModule.Builder().build()).registerModule(JavaTimeModule())
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.enable(DeserializationFeature.READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE);
private val token = "abc"
private val serverReceivedSink = Sinks.many().unicast().onBackpressureBuffer<String>()
private val serverMessagesReceived = serverReceivedSink.asFlux().publish().autoConnect()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ServerMessageTest {

companion object {
val objectMapper: ObjectMapper = ObjectMapper()
.registerModule(KotlinModule())
.registerModule(KotlinModule.Builder().build())
.registerModule(JavaTimeModule())
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
}
Expand Down

0 comments on commit 59a3d53

Please sign in to comment.