finaglehelper on develop
finatra: Support for injecting … (compare)
finaglehelper on develop
finatra-thrift: Reduce complexi… (compare)
finaglehelper on develop
finatra-thrift: Use correct dat… (compare)
finaglehelper on develop
finatra-thrift: CommonThriftLog… (compare)
finaglehelper on develop
finagle, finatra, ts: Keep `inc… (compare)
finaglehelper on develop
finatra: Add comments for optim… (compare)
finaglehelper on develop
finatra-doc: Add missing import… (compare)
finaglehelper on develop
inject-core: Remove finagle-cor… (compare)
finaglehelper on develop
finatra: Use permanent links fo… (compare)
finaglehelper on develop
util|scrooge|finagle|twitter-se… (compare)
finaglehelper on develop
finatra: Update testing docs P… (compare)
@JsonSerialize(using = LocalDateSerializer.class)
The Scala Module supports serialization and limited deserialization of Scala Case Classes, Sequences, Maps, Tuples, Options, and Enumerations.
If you just want to test json mapping, then yeah you can follow what happens in the Jackson tests:
https://github.com/twitter/finatra/blob/develop/jackson/src/test/scala/com/twitter/finatra/jackson/ScalaObjectMapperTest.scala
Or if you want to test how object mapping interacts with HTTP requests, then you can build a minimal injector like in the MessageBodyManagerTest (https://github.com/twitter/finatra/blob/develop/http/src/test/scala/com/twitter/finatra/http/tests/marshalling/MessageBodyManagerTest.scala#L72) and get references to the DefaultMessageBodyReader
and DefaultMessageBodyWriter
(which are supersets of logic and end up deferring to the ScalaObjectMapper for JSON serialization): https://github.com/twitter/finatra/blob/develop/http/src/main/scala/com/twitter/finatra/http/internal/marshalling/DefaultMessageBodyWriterImpl.scala#L68
But I’m not sure that tells you anything about your code built on top of this.