Skip to content

Conversation

mwfpope
Copy link

@mwfpope mwfpope commented Sep 15, 2018

Problem
The WorkflowTest rule does not use the DataConverter that is specified in the Workflow annotation. Instead, it always uses the JsonDataConverter. This means that if you try to use your own DataConverter with the WorkflowTest rule, your tests will fail if the JsonDataConverter can't deserialize something that your custom DataConverter serialized.

How this change solves it
This change creates an overloaded constructor that will allow developers to construct the WorkflowTest rule with their custom DataConverter implementation.

Licensing
Amazon already owns the rights to this contribution due to a previously signed agreement.

The WorkflowTest rule does not use the DataConverter that is specified in the Workflow annotation. Instead, it always uses the JsonDataConverter. This means that if you try to use your own DataConverter with the WorkflowTest rule, your tests will fail if the JsonDataConverter can't deserialize something that your custom DataConverter serialized.

This change creates an overloaded constructor that will allow developers to construct the WorkflowTest rule with their custom DataConverter implementation.
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