question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom JsonMapper not supported in @ZeebeSpringTest

See original GitHub issue

There 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
berndrueckercommented, Aug 3, 2022

Released with 8.0.7 (you were lucky regards to timing as Zeebe Client 8.0.5 just got released 😃)

0reactions
mila973commented, Aug 3, 2022

Yeah, this should help us. Thank you (Kudos for quick solution).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found