Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Conversation

denismironchukepam
Copy link

No description provided.

Comment on lines 806 to 816
assertThat(returnValue.getStatus(), is(Status.COMPLETED));
assertThat(returnValue.getClientRefundId(), is("1573548663"));
assertThat(returnValue.getSourceToken(), is("act-ba4e8fdd-614b-11e5-af23-0faa28ca7c0f"));
assertThat(returnValue.getSourceAmount(), is(50.0));
assertThat(returnValue.getSourceCurrency(), is("USD"));
assertThat(returnValue.getDestinationToken(), is("usr-3deb34a0-ffd1-487d-8860-6d69435cea6c"));
assertThat(returnValue.getDestinationAmount(), is(50.0));
assertThat(returnValue.getDestinationCurrency(), is("USD"));
assertThat(returnValue.getNotes(), is("Merchant Payment return to Wallet Balance"));
assertThat(returnValue.getMemo(), is("TransferReturn123456"));
assertThat(returnValue.getCreatedOn(), is(dateFormat.parse("2019-11-12T11:51:05 UTC")));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to extract this to a common re-usable method.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines 2906 to 2911
assertThat(e.getErrorCode(), is(nullValue()));
assertThat(e.getResponse(), is(nullValue()));
assertThat(e.getErrorMessage(), is(equalTo("Transfer Refund is required")));
assertThat(e.getMessage(), is(equalTo("Transfer Refund is required")));
assertThat(e.getHyperwalletErrors(), is(nullValue()));
assertThat(e.getRelatedResources(), is(nullValue()));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this, is it possible to extract this to a common re-usable method.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.656% when pulling 5208665 on feature/HW-57146_java_sdk_for_transfer_refunds into f4bed29 on master.

Copy link
Contributor

@peter-joseph peter-joseph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peter-joseph peter-joseph deleted the feature/HW-57146_java_sdk_for_transfer_refunds branch September 15, 2020 01:30
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.

6 participants