Custom JsonMapper not supported in @ZeebeSpringTest
See original GitHub issueThere is no option to configure ZeebeClient with custom JsonMapper when testing. ZeebeTestExecutionListener class creates client from test zeebe engine (embedded or container) method .createClient()
, but no client configuration can be changed.
This results in failing serialization in workers integration tests. ZeebeClientProxy.class
can help, but only in test class not in worker bean.
It would be great to be able to use JsonMapper from application context bean.
Used version of spring-zeebe-test
= 8.0.6
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Customized ObjectMapper not used in test - Stack Overflow
In my case, I configured custom ObjectMapper via spring boot's 'spring.jackson.default-property-inclusion=non_null', and I only needed to inject auto-configured ...
Read more >spring-zeebe/README.md at master - GitHub
Community Extension Compatible with: Camunda Platform 8 ... If you need to customize the ObjectMapper that the Zeebe client uses to work with...
Read more >Testing Serialization With Spring Boot @JsonTest
Sometimes we need to customize serialization of properties in Spring. Learn how to test JSON serialization with Spring Boot @JsonTest.
Read more >Spring Zeebe Testcontainers not working - Camunda Forum
Hi all, I'm using Spring Boot and therefore Spring Zeebe Client, all on Java 8. According to the readme file of Spring Zeebe, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released with 8.0.7 (you were lucky regards to timing as Zeebe Client 8.0.5 just got released 😃)
Yeah, this should help us. Thank you (Kudos for quick solution).