Test customizing the Jackson object mapper (#30670)

Starting with https://github.com/FasterXML/jackson-databind/issues/2683
Jackson will no longer use the generic bean serialization when serializing a
`java.time.Instant`, but throw an error (since the bean serialization
doesn't make sense for those types anyway).

Our test relied on the bean serialization to test using custom object
mappers. This PR improves the test to use a 'real' custom mapper instead
of just relying on the bean fallback.
This commit is contained in:
Arnout Engelen 2021-09-10 12:49:05 +02:00 committed by GitHub
parent 145b2fd326
commit 9f252696ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 8 deletions

View file

@ -26,7 +26,7 @@ jobs:
- akka-discovery/test
- akka-persistence/compile
- akka-pki/test
- akka-serialization-jackson/Test/compile
- akka-serialization-jackson/test
- akka-slf4j/test
- akka-stream/test akka-stream-testkit/test akka-stream-tests/test
- akka-stream-tests-tck/test