aws / aws-swf-flow-library

AWS Simple Workflow Flow framework library
Apache License 2.0
61 stars 54 forks source link

Fix a bug in WorkflowTest.java #22

Open mwfpope opened 5 years ago

mwfpope commented 5 years ago

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.