Skip to content

Fix a bug in WorkflowTest.java #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix a bug in WorkflowTest.java #22

wants to merge 1 commit into from

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