Skip to content

Commit ac803ed

Browse files
chore(deps): bump org.skyscreamer:jsonassert from 1.3.0 to 1.5.3 (#129)
* chore(deps): bump org.skyscreamer:jsonassert from 1.3.0 to 1.5.3 Bumps [org.skyscreamer:jsonassert](https://github.com/skyscreamer/JSONassert) from 1.3.0 to 1.5.3. - [Release notes](https://github.com/skyscreamer/JSONassert/releases) - [Changelog](https://github.com/skyscreamer/JSONassert/blob/master/CHANGELOG.md) - [Commits](skyscreamer/JSONassert@jsonassert-1.3.0...jsonassert-1.5.3) --- updated-dependencies: - dependency-name: org.skyscreamer:jsonassert dependency-version: 1.5.3 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Adjusting assertion logic to not have unneeded literals in JSON --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ihor Prysiazhnyi <iprysiazhnyi@siftscience.com>
1 parent 0df514f commit ac803ed

File tree

9 files changed

+31
-31
lines changed

9 files changed

+31
-31
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ compileTestJava {
2222

2323
dependencies {
2424
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
25-
testImplementation group: 'org.skyscreamer', name: 'jsonassert', version: '1.3.0'
25+
testImplementation group: 'org.skyscreamer', name: 'jsonassert', version: '1.5.3'
2626
testImplementation group: 'com.squareup.okhttp3', name: 'mockwebserver', version: '4.10.0'
2727
testImplementation group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
2828
implementation 'com.google.code.gson:gson:2.13.1'

src/test/java/com/siftscience/ContentEventTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public void testCreateListing() throws Exception {
163163
" \"$link\": \"https://www.domain.com/file.png\",\n" +
164164
" \"$description\": \"Billy's picture\"\n" +
165165
" }],\n" +
166-
" \"$expiration_time\": 1549063157000,\n" +
166+
" \"$expiration_time\": 1549063157000\n" +
167167
" },\n" +
168168
" \"$verification_phone_number\" : \"+12345678901\"\n" +
169169
"}";
@@ -271,7 +271,7 @@ public void testCreateMessage() throws Exception {
271271
" \"$md5_hash\": \"aflshdfbalsubdf3234sfdkjb\",\n" +
272272
" \"$link\": \"https://www.domain.com/file.png\",\n" +
273273
" \"$description\": \"My hike today!\"\n" +
274-
" }],\n" +
274+
" }]\n" +
275275
" }," +
276276
" \"$verification_phone_number\" : \"+12345678901\"\n" +
277277
"}";
@@ -363,7 +363,7 @@ public void testCreateProfile() throws Exception {
363363
" \"$md5_hash\": \"aflshdfbalsubdf3234sfdkjb\",\n" +
364364
" \"$link\": \"https://www.domain.com/file.png\",\n" +
365365
" \"$description\": \"Alex’s picture\"\n" +
366-
" }],\n" +
366+
" }]\n" +
367367
" }," +
368368
" \"$verification_phone_number\" : \"+12345678901\"\n" +
369369
"}";
@@ -784,7 +784,7 @@ public void testUpdateListing() throws Exception {
784784
" \"$link\": \"https://www.domain.com/file.png\",\n" +
785785
" \"$description\": \"Billy's picture\"\n" +
786786
" }],\n" +
787-
" \"$expiration_time\": 1549063157000,\n" +
787+
" \"$expiration_time\": 1549063157000\n" +
788788
" },\n" +
789789
" \"$verification_phone_number\" : \"+12345678901\"\n" +
790790
"}";
@@ -894,7 +894,7 @@ public void testUpdateMessage() throws Exception {
894894
" \"$md5_hash\": \"aflshdfbalsubdf3234sfdkjb\",\n" +
895895
" \"$link\": \"https://www.domain.com/file.png\",\n" +
896896
" \"$description\": \"My hike today!\"\n" +
897-
" }],\n" +
897+
" }]\n" +
898898
" }," +
899899
" \"$verification_phone_number\" : \"+12345678901\"\n" +
900900
"}";
@@ -988,7 +988,7 @@ public void testUpdateProfile() throws Exception {
988988
" \"$md5_hash\": \"aflshdfbalsubdf3234sfdkjb\",\n" +
989989
" \"$link\": \"https://www.domain.com/file.png\",\n" +
990990
" \"$description\": \"Alex’s picture\"\n" +
991-
" }],\n" +
991+
" }]\n" +
992992
" }," +
993993
" \"$verification_phone_number\" : \"+12345678901\"\n" +
994994
"}";

src/test/java/com/siftscience/CreateOrderEventTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ public void testCreateOrderEventWithCryptoFields() throws JSONException, IOExcep
978978
" \"$payment_methods\": [\n" +
979979
" {\n" +
980980
" \"$wallet_address\": \"ZplYVmchAoywfMvC8jCiKlBLfKSBiFtHU6\",\n" +
981-
" \"$wallet_type\": \"$crypto\",\n" +
981+
" \"$wallet_type\": \"$crypto\"\n" +
982982
" }\n" +
983983
" ],\n" +
984984
" \"$digital_orders\" : [\n" +
@@ -987,9 +987,9 @@ public void testCreateOrderEventWithCryptoFields() throws JSONException, IOExcep
987987
" \"$pair\" : \"BTC_USD\",\n" +
988988
" \"$asset_type\" : \"$crypto\",\n" +
989989
" \"$order_type\" : \"$market\",\n" +
990-
" \"$volume\" : \"6.0\",\n" +
990+
" \"$volume\" : \"6.0\"\n" +
991991
" }\n" +
992-
" ],\n" +
992+
" ]\n" +
993993
"}\n";
994994

995995
// Start a new mock server and enqueue a mock response.

src/test/java/com/siftscience/SiftClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public void testNullsAreNotSerialized() throws JSONException {
310310
"\"$amount\": 5," +
311311
"\"$session_id\": \"foo\"," +
312312
"\"custom1\": \"blah\"," +
313-
"\"custom3\": 99," +
313+
"\"custom3\": 99" +
314314
"}", fieldSet.toJson(), true);
315315
}
316316

src/test/java/com/siftscience/TransactionEventTest.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public void testTransactionEventWithSentAndReceivedAddresses() throws Exception
383383
" \"$region\" : \"New Hampshire\",\n" +
384384
" \"$country\" : \"US\",\n" +
385385
" \"$zipcode\" : \"03257\"\n" +
386-
" },\n" +
386+
" }\n" +
387387
"}";
388388

389389
// Start a new mock server and enqueue a mock response.
@@ -469,7 +469,7 @@ public void testTransactionEventWithMerchantAnd3dsFields() throws Exception {
469469
" },\n" +
470470
" \"$merchant_initiated_transaction\" : true,\n" +
471471
" \"$triggered_3ds\" : \"$processor\",\n" +
472-
" \"$status_3ds\" : \"$successful\",\n" +
472+
" \"$status_3ds\" : \"$successful\"\n" +
473473
"}";
474474

475475
// Start a new mock server and enqueue a mock response.
@@ -539,7 +539,7 @@ public void testTransactionEventWithSepaPaymentMethod() throws Exception {
539539
" \"$shortened_iban_first6\" : \"FR7630\",\n" +
540540
" \"$shortened_iban_last4\" : \"1234\",\n" +
541541
" \"$sepa_direct_debit_mandate\" : true\n" +
542-
" },\n" +
542+
" }\n" +
543543
"}";
544544

545545
// Start a new mock server and enqueue a mock response.
@@ -602,19 +602,19 @@ public void testTransactionEventWithCryptoFields() throws Exception {
602602
"\n" +
603603
" \"$payment_method\" : {\n" +
604604
" \"$wallet_address\" : \"ZplYVmchAoywfMvC8jCiKlBLfKSBiFtHU6\",\n" +
605-
" \"$wallet_type\" : \"$crypto\",\n" +
605+
" \"$wallet_type\" : \"$crypto\"\n" +
606606
" },\n" +
607607
" \"$digital_orders\" : [\n" +
608608
" {\n" +
609609
" \"$digital_asset\" : \"BTC\",\n" +
610610
" \"$pair\" : \"BTC_USD\",\n" +
611611
" \"$asset_type\" : \"$crypto\",\n" +
612612
" \"$order_type\" : \"$market\",\n" +
613-
" \"$volume\" : \"6.0\",\n" +
613+
" \"$volume\" : \"6.0\"\n" +
614614
" }\n" +
615615
" ],\n" +
616616
" \"$receiver_wallet_address\" : \"jx17gVqSyo9m4MrhuhuYEUXdCicdof85Bl\",\n" +
617-
" \"$receiver_external_address\" : true,\n" +
617+
" \"$receiver_external_address\" : true\n" +
618618
"}";
619619

620620
// Start a new mock server and enqueue a mock response.
@@ -683,7 +683,7 @@ public void testTransactionEventWithExtraDepositFields() throws Exception {
683683
" \"$minimum_deposit_amount\" : 5000,\n" +
684684
" \"$maximum_deposit_amount\" : 100000000,\n" +
685685
" \"$current_balance\" : 500000,\n" +
686-
" \"$new_balance\" : 1000000,\n" +
686+
" \"$new_balance\" : 1000000\n" +
687687
"}";
688688

689689
// Start a new mock server and enqueue a mock response.
@@ -747,7 +747,7 @@ public void testTransactionEventWithExtraWithdrawalFields() throws Exception {
747747
" \"$minimum_withdrawal_amount\" : 5000,\n" +
748748
" \"$maximum_withdrawal_amount\" : 100000000,\n" +
749749
" \"$current_balance\" : 1000000,\n" +
750-
" \"$new_balance\" : 500000,\n" +
750+
" \"$new_balance\" : 500000\n" +
751751
"}";
752752

753753
// Start a new mock server and enqueue a mock response.
@@ -822,8 +822,8 @@ public void testTransactionEventWithBinMetadata() throws Exception {
822822
" \"$type\" : \"CREDIT\",\n" +
823823
" \"$brand\" : \"VISA\",\n" +
824824
" \"$bank\" : \"Chase\"\n" +
825-
" },\n" +
826-
" },\n" +
825+
" }\n" +
826+
" }\n" +
827827
"}";
828828

829829
// Start a new mock server and enqueue a mock response.
@@ -889,8 +889,8 @@ public void testTransactionEventWithExchangeRate() throws Exception {
889889
" \"$currency_code\" : \"EUR\",\n" +
890890
" \"$exchange_rate\" : {\n" +
891891
" \"$quote_currency_code\" : \"USD\",\n" +
892-
" \"$rate\" : 1.15,\n" +
893-
" },\n" +
892+
" \"$rate\" : 1.15\n" +
893+
" }\n" +
894894
"}";
895895

896896
// Start a new mock server and enqueue a mock response.

src/test/java/com/siftscience/UpdateOrderEventTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ public void testUpdateOrderEventWithMerchantProfileField()
900900
" \"$region\" : \"New Hampshire\",\n" +
901901
" \"$zipcode\" : \"03257\"\n" +
902902
" }\n" +
903-
" },\n" +
903+
" }\n" +
904904
"}\n";
905905

906906
// Start a new mock server and enqueue a mock response.
@@ -972,7 +972,7 @@ public void testUpdateOrderEventWithCryptoFields()
972972
" \"$payment_methods\": [\n" +
973973
" {\n" +
974974
" \"$wallet_address\": \"ZplYVmchAoywfMvC8jCiKlBLfKSBiFtHU6\",\n" +
975-
" \"$wallet_type\": \"$crypto\",\n" +
975+
" \"$wallet_type\": \"$crypto\"\n" +
976976
" }\n" +
977977
" ],\n" +
978978
" \"$digital_orders\" : [\n" +
@@ -981,9 +981,9 @@ public void testUpdateOrderEventWithCryptoFields()
981981
" \"$pair\" : \"BTC_USD\",\n" +
982982
" \"$asset_type\" : \"$crypto\",\n" +
983983
" \"$order_type\" : \"$market\",\n" +
984-
" \"$volume\" : \"6.0\",\n" +
984+
" \"$volume\" : \"6.0\"\n" +
985985
" }\n" +
986-
" ],\n" +
986+
" ]\n" +
987987
"}\n";
988988

989989
// Start a new mock server and enqueue a mock response.

src/test/java/com/siftscience/UpdatePasswordEventTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void testUpdatePassword() throws Exception {
3131
" \"$device_manufacturer\" : \"Apple\",\n" +
3232
" \"$device_model\" : \"iPhone 4,2\",\n" +
3333
" \"$device_unique_id\" : \"A3D261E4-DE0A-470B-9E4A-720F3D3D22E6\",\n" +
34-
" \"$app_version\" : \"3.2.7\",\n" +
34+
" \"$app_version\" : \"3.2.7\"\n" +
3535
" },\n" +
3636
" \"$reason\" : \"$forced_reset\",\n" +
3737
" \"$status\" : \"$success\",\n" +

src/test/java/com/siftscience/VerificationEventTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ public void testVerification() throws Exception {
3333
" \"$device_manufacturer\" : \"Apple\",\n" +
3434
" \"$device_model\" : \"iPhone 4,2\",\n" +
3535
" \"$device_unique_id\" : \"A3D261E4-DE0A-470B-9E4A-720F3D3D22E6\",\n" +
36-
" \"$app_version\" : \"3.2.7\",\n" +
36+
" \"$app_version\" : \"3.2.7\"\n" +
3737
" },\n" +
3838
" \"$status\" : \"$pending\",\n" +
3939
" \"$verification_type\" : \"$sms\",\n" +
4040
" \"$verified_value\" : \"" + verifiedValue + "\",\n" +
4141
" \"$verified_event\" : \"" + verifiedEvent + "\",\n" +
4242
" \"$verified_entity_id\" : \"" + verifiedEntityId + "\",\n" +
4343
" \"$reason\" : \"" + reason + "\",\n" +
44-
" \"$ip\" : \"128.148.1.135\",\n" +
44+
" \"$ip\" : \"128.148.1.135\"\n" +
4545
"}";
4646

4747
// Start a new mock server and enqueue a mock response.

src/test/java/com/siftscience/WagerFieldSetTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void testWagerEvent() throws Exception {
3131
" \"$wager_event_type\" : \"sportsbook\",\n" +
3232
" \"$wager_event_name\" : \"NFL\",\n" +
3333
" \"$wager_event_id\" : \"NFL_2024_N1234\",\n" +
34-
" \"$minimum_wager_amount\" : 1000000,\n" +
34+
" \"$minimum_wager_amount\" : 1000000\n" +
3535
"}";
3636

3737
// Start a new mock server and enqueue a mock response.

0 commit comments

Comments
 (0)