Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tst/com/amazon/pay/api/UtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ public void testEnhanceResponseWithShippingAddressList() throws AmazonPayClientE
expectedCheckoutSessionResponse.setResponse(expectedShippingAddressListResponse);
expectedCheckoutSessionResponse.setRawResponse(expectedShippingAddressListResponse.toString());

Assert.assertEquals(expectedCheckoutSessionResponse.getRawResponse(), actualCheckoutSessionResponseAfterEnhancing.getRawResponse());
JSONObject expected = new JSONObject(expectedCheckoutSessionResponse.getRawResponse());
JSONObject actual = new JSONObject(actualCheckoutSessionResponseAfterEnhancing.getRawResponse());
Assert.assertTrue(expected.similar(actual));
}

@Test
Expand Down