Skip to content

Conversation

orkes-harshil
Copy link
Contributor

@orkes-harshil orkes-harshil commented Apr 29, 2025

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe): serialisation deserialisation tests

Changes in this PR

Added serialisation deserialisation tests for all POJOs in java sdk
Structure :
I have created a json file for all the json objects which are created using server POJOs (workflow+ LLM) : ser_deser_json_string.json
this JSON uses dynamic replacement for POJO fields

Objects resolution happens using a utility class : JsonTemplateSerDeserResolverUtil.java

JsonTemplateSerDeserResolverUtil.java and ser_deser_json_string.json are duplicated in both the modules : conductor-client and orkes-client

The tests have following standard structure :

  1. Unmarshal SERVER_JSON to SDK POJO
  2. Assert that the fields are all correctly populated
  3. Marshall this POJO to JSON again
  4. Compare the JSONs - nothing should be lost

In couple of POJOs there were missing fields - which I found because of these tests so I have added those fields.

@v1r3n v1r3n merged commit 65a438a into main May 5, 2025
9 checks passed
@v1r3n v1r3n deleted the feature-sede-tests branch May 5, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants