From 88c86b2d96e84b948dcdf6002a867cc07b3c1fc2 Mon Sep 17 00:00:00 2001 From: Jendrik Johannes Date: Tue, 8 Oct 2024 14:11:37 +0200 Subject: [PATCH] build: update test-only dependency - Jackson Jackson is a transitive dependency of 'json-snapshot'. In order to use Jackson as Java Module, we update it to the latest version instead of patching it. Unfortunately, 'json-snapshot' has not been updated in years and the way we used it is not compatible with the latest Jackson version. By adjusting the test setup as described here, we make it work: https://github.com/json-snapshot/json-snapshot.github.io/issues/27#issuecomment-583307554 Signed-off-by: Jendrik Johannes --- ...com.hedera.gradle.patch-modules.gradle.kts | 7 -- sdk-dependency-versions/build.gradle.kts | 3 + ...ccountAllowanceApproveTransactionTest.java | 2 +- ...AccountAllowanceDeleteTransactionTest.java | 2 +- .../sdk/AccountBalanceQueryTest.java | 2 +- .../sdk/AccountCreateTransactionTest.java | 2 +- .../sdk/AccountDeleteTransactionTest.java | 2 +- .../hedera/hashgraph/sdk/AccountIdTest.java | 2 +- .../hashgraph/sdk/AccountInfoQueryTest.java | 2 +- .../hedera/hashgraph/sdk/AccountInfoTest.java | 2 +- .../sdk/AccountRecordsQueryTest.java | 2 +- .../sdk/AccountStakersQueryTest.java | 2 +- .../sdk/AccountUpdateTransactionTest.java | 2 +- .../hedera/hashgraph/sdk/AllowancesTest.java | 2 +- .../hashgraph/sdk/AssessedCustomFeeTest.java | 2 +- .../sdk/ContractByteCodeQueryTest.java | 2 +- .../hashgraph/sdk/ContractCallQueryTest.java | 2 +- .../sdk/ContractCreateTransactionTest.java | 2 +- .../sdk/ContractDeleteTransactionTest.java | 2 +- .../sdk/ContractExecuteTransactionTest.java | 2 +- .../sdk/ContractFunctionParametersTest.java | 2 +- .../hedera/hashgraph/sdk/ContractIdTest.java | 2 +- .../hashgraph/sdk/ContractInfoQueryTest.java | 2 +- .../hashgraph/sdk/ContractInfoTest.java | 2 +- .../hashgraph/sdk/ContractLogInfoTest.java | 2 +- .../hashgraph/sdk/ContractNonceInfoTest.java | 2 +- .../sdk/ContractUpdateTransactionTest.java | 2 +- .../sdk/CryptoTransferTransactionTest.java | 2 +- .../hashgraph/sdk/CustomFeeListTest.java | 2 +- .../hashgraph/sdk/CustomFixedFeeTest.java | 2 +- .../sdk/CustomFractionalFeeTest.java | 2 +- .../hashgraph/sdk/CustomRoyaltyFeeTest.java | 2 +- .../hashgraph/sdk/DelegateContractIdTest.java | 2 +- .../sdk/EthereumTransactionTest.java | 2 +- .../hashgraph/sdk/FeeSchedulesTest.java | 2 +- .../sdk/FileAppendTransactionTest.java | 2 +- .../hashgraph/sdk/FileContentsQueryTest.java | 2 +- .../sdk/FileCreateTransactionTest.java | 2 +- .../sdk/FileDeleteTransactionTest.java | 2 +- .../com/hedera/hashgraph/sdk/FileIdTest.java | 2 +- .../hashgraph/sdk/FileInfoQueryTest.java | 2 +- .../hedera/hashgraph/sdk/FileInfoTest.java | 2 +- .../sdk/FileUpdateTransactionTest.java | 2 +- .../hashgraph/sdk/FreezeTransactionTest.java | 2 +- .../sdk/LiveHashAddTransactionTest.java | 2 +- .../sdk/LiveHashDeleteTransactionTest.java | 2 +- .../hashgraph/sdk/LiveHashQueryTest.java | 2 +- .../sdk/MessageSubmitTransactionTest.java | 2 +- .../sdk/NetworkVersionInfoQueryTest.java | 2 +- .../hashgraph/sdk/NetworkVersionInfoTest.java | 2 +- .../com/hedera/hashgraph/sdk/NftIdTest.java | 2 +- .../sdk/NodeCreateTransactionTest.java | 2 +- .../sdk/NodeDeleteTransactionTest.java | 2 +- .../sdk/NodeUpdateTransactionTest.java | 2 +- .../hashgraph/sdk/PrngTransactionTest.java | 2 +- .../hedera/hashgraph/sdk/ProxyStakerTest.java | 2 +- .../sdk/ScheduleCreateTransactionTest.java | 2 +- .../sdk/ScheduleDeleteTransactionTest.java | 2 +- .../hashgraph/sdk/ScheduleInfoQueryTest.java | 2 +- .../hashgraph/sdk/ScheduleInfoTest.java | 2 +- .../sdk/ScheduleSignTransactionTest.java | 2 +- .../com/hedera/hashgraph/sdk/Snapshot.java | 75 +++++++++++++++++++ .../hedera/hashgraph/sdk/StakingInfoTest.java | 2 +- .../sdk/SystemDeleteTransactionTest.java | 2 +- .../sdk/SystemUndeleteTransactionTest.java | 2 +- .../sdk/TokenAirdropTransactionTest.java | 2 +- .../sdk/TokenAssociateTransactionTest.java | 2 +- .../hashgraph/sdk/TokenAssociationTest.java | 2 +- .../sdk/TokenBurnTransactionTest.java | 2 +- .../TokenCancelAirdropTransactionTest.java | 2 +- .../sdk/TokenClaimAirdropTransactionTest.java | 2 +- .../sdk/TokenCreateTransactionTest.java | 2 +- .../sdk/TokenDeleteTransactionTest.java | 2 +- .../sdk/TokenDissociateTransactionTest.java | 2 +- ...TokenFeeScheduleUpdateTransactionTest.java | 2 +- .../sdk/TokenFreezeTransactionTest.java | 2 +- .../sdk/TokenGrantKycTransactionTest.java | 2 +- .../hashgraph/sdk/TokenInfoQueryTest.java | 2 +- .../hedera/hashgraph/sdk/TokenInfoTest.java | 2 +- .../sdk/TokenMintTransactionTest.java | 2 +- .../hashgraph/sdk/TokenNftInfoQueryTest.java | 2 +- .../hashgraph/sdk/TokenNftInfoTest.java | 2 +- .../sdk/TokenPauseTransactionTest.java | 2 +- .../sdk/TokenRejectTransactionTest.java | 2 +- .../hashgraph/sdk/TokenRelationshipTest.java | 2 +- .../sdk/TokenRevokeKycTransactionTest.java | 2 +- .../hashgraph/sdk/TokenSupplyTypeTest.java | 2 +- .../hedera/hashgraph/sdk/TokenTypeTest.java | 2 +- .../sdk/TokenUnfreezeTransactionTest.java | 2 +- .../sdk/TokenUnpauseTransactionTest.java | 2 +- .../sdk/TokenUpdateNftsTransactionTest.java | 2 +- .../sdk/TokenUpdateTransactionTest.java | 2 +- .../sdk/TokenWipeTransactionTest.java | 2 +- .../sdk/TopicCreateTransactionTest.java | 2 +- .../sdk/TopicDeleteTransactionTest.java | 2 +- .../com/hedera/hashgraph/sdk/TopicIdTest.java | 2 +- .../hashgraph/sdk/TopicInfoQueryTest.java | 2 +- .../hedera/hashgraph/sdk/TopicInfoTest.java | 2 +- .../hashgraph/sdk/TopicMessageQueryTest.java | 2 +- .../TopicMessageSubmitTransactionTest.java | 2 +- .../sdk/TopicUpdateTransactionTest.java | 2 +- .../hashgraph/sdk/TransactionIdTest.java | 2 +- .../sdk/TransactionReceiptQueryTest.java | 2 +- .../hashgraph/sdk/TransactionReceiptTest.java | 2 +- .../sdk/TransactionRecordQueryTest.java | 2 +- .../hashgraph/sdk/TransactionRecordTest.java | 2 +- 106 files changed, 181 insertions(+), 110 deletions(-) create mode 100644 sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java diff --git a/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts b/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts index 536ff23537..84a6fd4cc1 100644 --- a/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts +++ b/gradle/plugins/src/main/kotlin/com.hedera.gradle.patch-modules.gradle.kts @@ -138,13 +138,6 @@ extraJavaModuleInfo { module("com.google.api.grpc:proto-google-common-protos", "com.google.api.grpc.common") // Testing only - module("com.fasterxml.jackson.core:jackson-annotations", "com.fasterxml.jackson.annotations") - module("com.fasterxml.jackson.core:jackson-core", "com.fasterxml.jackson.core") - module("com.fasterxml.jackson.core:jackson-databind", "com.fasterxml.jackson.databind") { - exportAllPackages() - requireAllDefinedDependencies() - requires("java.sql") - } module("io.grpc:grpc-netty-shaded", "io.grpc.netty.shaded") { exportAllPackages() requireAllDefinedDependencies() diff --git a/sdk-dependency-versions/build.gradle.kts b/sdk-dependency-versions/build.gradle.kts index 6ced37194d..a3b3a9f350 100644 --- a/sdk-dependency-versions/build.gradle.kts +++ b/sdk-dependency-versions/build.gradle.kts @@ -75,6 +75,9 @@ dependencies.constraints { } // Testing + api("com.fasterxml.jackson.core:jackson-core:2.18.0") { + because("com.fasterxml.jackson.core") + } api("io.github.cdimascio:java-dotenv:5.3.1") { because("java.dotenv") } diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java index dff2e9d01f..ada2e88043 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceApproveTransactionTest.java @@ -47,7 +47,7 @@ public class AccountAllowanceApproveTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java index 9c0324c360..d8f21eab66 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountAllowanceDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class AccountAllowanceDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java index 185b61a198..b43763872d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountBalanceQueryTest.java @@ -28,7 +28,7 @@ public class AccountBalanceQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java index ab41eb21a2..a997f9b3c9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountCreateTransactionTest.java @@ -40,7 +40,7 @@ public class AccountCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java index 6cd3283efd..a9ad9c4e38 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class AccountDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java index 2fa29b0b3a..12e242ebb4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountIdTest.java @@ -39,7 +39,7 @@ class AccountIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); mainnetClient = Client.forMainnet(); testnetClient = Client.forTestnet(); previewnetClient = Client.forPreviewnet(); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java index cad60c0302..4a74a35283 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoQueryTest.java @@ -28,7 +28,7 @@ public class AccountInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java index 3fcee995d2..2500af52a5 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountInfoTest.java @@ -60,7 +60,7 @@ public class AccountInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java index fcfddc0028..5e2d4366e3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountRecordsQueryTest.java @@ -28,7 +28,7 @@ public class AccountRecordsQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java index 42b9089671..2015b2e3cf 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountStakersQueryTest.java @@ -28,7 +28,7 @@ public class AccountStakersQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java index 86172fa727..06af2f055a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AccountUpdateTransactionTest.java @@ -40,7 +40,7 @@ public class AccountUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java index adae5cf5e2..11b2353203 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AllowancesTest.java @@ -34,7 +34,7 @@ public class AllowancesTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java index b4d6cb6ef0..d111a21bd2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/AssessedCustomFeeTest.java @@ -30,7 +30,7 @@ public class AssessedCustomFeeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java index 60435ef045..514cd92437 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractByteCodeQueryTest.java @@ -28,7 +28,7 @@ public class ContractByteCodeQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java index ef5747797d..7e1e33cb07 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCallQueryTest.java @@ -35,7 +35,7 @@ public class ContractCallQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java index 1b224ae04f..d044aa21b7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractCreateTransactionTest.java @@ -41,7 +41,7 @@ public class ContractCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java index 1cd1cc48f1..841be30253 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class ContractDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java index 3399298fcd..7912f01c43 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractExecuteTransactionTest.java @@ -40,7 +40,7 @@ public class ContractExecuteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java index aa2a72d336..d118bf2c3b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractFunctionParametersTest.java @@ -44,7 +44,7 @@ public class ContractFunctionParametersTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java index 9405dfa893..f7522a5f49 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractIdTest.java @@ -32,7 +32,7 @@ class ContractIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java index 59c35075ba..6c16d2d193 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoQueryTest.java @@ -28,7 +28,7 @@ public class ContractInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java index 7b4d9078f8..4188b1391f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractInfoTest.java @@ -47,7 +47,7 @@ public class ContractInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java index d6654eb15a..358569620e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractLogInfoTest.java @@ -21,7 +21,7 @@ public class ContractLogInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java index 1821917e07..a9c3c6f5b7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractNonceInfoTest.java @@ -16,7 +16,7 @@ public class ContractNonceInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java index f9f065466e..f16c49e0a4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ContractUpdateTransactionTest.java @@ -40,7 +40,7 @@ public class ContractUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java index 926d8ffa7b..e9d6733520 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/CryptoTransferTransactionTest.java @@ -42,7 +42,7 @@ public class CryptoTransferTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java index 5d8f70267c..10219974d9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFeeListTest.java @@ -32,7 +32,7 @@ public class CustomFeeListTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java index 6ef3a0e2cd..913709a2f9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFixedFeeTest.java @@ -40,7 +40,7 @@ public class CustomFixedFeeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java index 3ac77404bd..0771c91ccf 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomFractionalFeeTest.java @@ -27,7 +27,7 @@ public class CustomFractionalFeeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java index c033e872e9..5ab1dca143 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/CustomRoyaltyFeeTest.java @@ -43,7 +43,7 @@ public class CustomRoyaltyFeeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java index 73d58154b3..70d17abd11 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/DelegateContractIdTest.java @@ -29,7 +29,7 @@ class DelegateContractIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java index 7dfe891bfa..baa8144b9c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/EthereumTransactionTest.java @@ -19,7 +19,7 @@ public class EthereumTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java index 991816ec39..fcf9dec412 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FeeSchedulesTest.java @@ -31,7 +31,7 @@ public class FeeSchedulesTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java index c740dd2438..c7be96651e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileAppendTransactionTest.java @@ -91,7 +91,7 @@ public class FileAppendTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java index 5eec539f99..9911fb2449 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileContentsQueryTest.java @@ -28,7 +28,7 @@ public class FileContentsQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java index 1f1e1f64cc..d7e8208b78 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileCreateTransactionTest.java @@ -39,7 +39,7 @@ public class FileCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java index 0909312f89..2a40687f9f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class FileDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java index 08aa14fb46..cbcf26ab67 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileIdTest.java @@ -29,7 +29,7 @@ class FileIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java index dd53e4fc10..2bb229aac8 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoQueryTest.java @@ -28,7 +28,7 @@ public class FileInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java index b2d8fae0ac..3fbbb64b40 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileInfoTest.java @@ -47,7 +47,7 @@ public class FileInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java index 076a82cf18..70fba11b02 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FileUpdateTransactionTest.java @@ -39,7 +39,7 @@ public class FileUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java index ceab19e5a6..51e1daf615 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/FreezeTransactionTest.java @@ -49,7 +49,7 @@ public class FreezeTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java index cbe69a6ef8..d275098512 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashAddTransactionTest.java @@ -21,7 +21,7 @@ class LiveHashAddTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java index 83904c8901..ed687d7f20 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashDeleteTransactionTest.java @@ -20,7 +20,7 @@ class LiveHashDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java index 45c1ba6f04..5bc859aab2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/LiveHashQueryTest.java @@ -11,7 +11,7 @@ public class LiveHashQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java index 07a8f981e7..187b0ecb9e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/MessageSubmitTransactionTest.java @@ -39,7 +39,7 @@ public class MessageSubmitTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java index 21ed0fedfa..d05f3fec6f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoQueryTest.java @@ -11,7 +11,7 @@ public class NetworkVersionInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java index 840daea7cc..3920aa6b39 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NetworkVersionInfoTest.java @@ -10,7 +10,7 @@ public class NetworkVersionInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java index ba1468f46b..cb313d93f7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NftIdTest.java @@ -38,7 +38,7 @@ class NftIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); mainnetClient = Client.forMainnet(); testnetClient = Client.forTestnet(); previewnetClient = Client.forPreviewnet(); diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java index 6ae9ca1000..4760e728e4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeCreateTransactionTest.java @@ -68,7 +68,7 @@ public class NodeCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java index f55716e4b9..67ea54004d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeDeleteTransactionTest.java @@ -43,7 +43,7 @@ public class NodeDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java index b49355b6f8..b07b52c908 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/NodeUpdateTransactionTest.java @@ -72,7 +72,7 @@ public class NodeUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java index df00eb9069..948076080a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/PrngTransactionTest.java @@ -36,7 +36,7 @@ public class PrngTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java index 3c8dce924e..0ab2f70eb9 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ProxyStakerTest.java @@ -14,7 +14,7 @@ public class ProxyStakerTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java index 086ae13f40..ff055cce11 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleCreateTransactionTest.java @@ -37,7 +37,7 @@ public class ScheduleCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java index 72c9172b0a..d9eed28d1c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class ScheduleDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java index 5e87aaae3c..31d584475e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoQueryTest.java @@ -28,7 +28,7 @@ public class ScheduleInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java index a76f37602d..4f15f7c45b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleInfoTest.java @@ -20,7 +20,7 @@ public class ScheduleInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java index c6622fc5e6..6c987f2319 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/ScheduleSignTransactionTest.java @@ -37,7 +37,7 @@ public class ScheduleSignTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java new file mode 100644 index 0000000000..8487204e85 --- /dev/null +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/Snapshot.java @@ -0,0 +1,75 @@ +package com.hedera.hashgraph.sdk; + +import com.fasterxml.jackson.annotation.JsonAutoDetect; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.PrettyPrinter; +import com.fasterxml.jackson.core.util.DefaultIndenter; +import com.fasterxml.jackson.core.util.DefaultPrettyPrinter; +import com.fasterxml.jackson.core.util.Separators; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.SerializationFeature; + +import javax.annotation.Nonnull; +import java.io.IOException; +import java.io.UncheckedIOException; + +final class Snapshot { + private static final ObjectMapper objectMapper = buildObjectMapper(); + + /** + * Workaround for an incompatibility between latest Jackson and json-snapshot libs. + *

+ * Intended to replace {@code io.github.jsonSnapshot.SnapshotMatcher#defaultJsonFunction} + * + * @see Issue in json-snapshot project + */ + static String asJsonString(Object object) { + try { + return objectMapper.writer(buildDefaultPrettyPrinter()).writeValueAsString(object); + } catch (JsonProcessingException e) { + throw new UncheckedIOException(e); + } + } + + /** + * Unmodified copy of {@code io.github.jsonSnapshot.SnapshotMatcher#buildObjectMapper} + */ + private static ObjectMapper buildObjectMapper() { + ObjectMapper objectMapper = new ObjectMapper(); + objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true); + objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); + objectMapper.setVisibility( + objectMapper + .getSerializationConfig() + .getDefaultVisibilityChecker() + .withFieldVisibility(JsonAutoDetect.Visibility.ANY) + .withGetterVisibility(JsonAutoDetect.Visibility.NONE) + .withSetterVisibility(JsonAutoDetect.Visibility.NONE) + .withCreatorVisibility(JsonAutoDetect.Visibility.NONE)); + return objectMapper; + } + + /** + * Modified copy of {@code io.github.jsonSnapshot.SnapshotMatcher#buildDefaultPrettyPrinter} + */ + private static PrettyPrinter buildDefaultPrettyPrinter() { + DefaultPrettyPrinter pp = + new DefaultPrettyPrinter() { + @Override + @Nonnull + public DefaultPrettyPrinter createInstance() { + return this; + } + @Override + public void writeObjectFieldValueSeparator(JsonGenerator jg) throws IOException { + jg.writeRaw(": "); + } + }; + DefaultPrettyPrinter.Indenter lfOnlyIndenter = new DefaultIndenter(" ", "\n"); + pp.indentArraysWith(lfOnlyIndenter); + pp.indentObjectsWith(lfOnlyIndenter); + return pp; + } +} diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java index 20ea879798..e4af2fdcd4 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/StakingInfoTest.java @@ -14,7 +14,7 @@ public class StakingInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java index 17fadeeb9e..625e58a5e1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemDeleteTransactionTest.java @@ -46,7 +46,7 @@ public class SystemDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java index 0150c6b8d3..965d07aef0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/SystemUndeleteTransactionTest.java @@ -39,7 +39,7 @@ public class SystemUndeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java index 85dc3e51eb..e0708b9375 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAirdropTransactionTest.java @@ -52,7 +52,7 @@ public void setUp() { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java index 0563f5d4dd..ae14c42001 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociateTransactionTest.java @@ -46,7 +46,7 @@ public class TokenAssociateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java index b3218ded3a..d2adbfee70 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenAssociationTest.java @@ -16,7 +16,7 @@ public class TokenAssociationTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java index 3c3f88044f..300972dec1 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenBurnTransactionTest.java @@ -45,7 +45,7 @@ public class TokenBurnTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java index 147bd25824..548e0b5e6d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCancelAirdropTransactionTest.java @@ -43,7 +43,7 @@ class TokenCancelAirdropTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java index 45a78258eb..7445670a4a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenClaimAirdropTransactionTest.java @@ -43,7 +43,7 @@ class TokenClaimAirdropTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java index 16b74d614f..286c7ea46e 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenCreateTransactionTest.java @@ -84,7 +84,7 @@ public class TokenCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java index a1941df49e..e58b2d0531 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDeleteTransactionTest.java @@ -41,7 +41,7 @@ public class TokenDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java index 0dea0fbfc2..9635c3dfe3 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenDissociateTransactionTest.java @@ -46,7 +46,7 @@ public class TokenDissociateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java index 9216244741..b7e2bea705 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFeeScheduleUpdateTransactionTest.java @@ -38,7 +38,7 @@ public class TokenFeeScheduleUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java index ab6b03eca2..017d6cfb2a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenFreezeTransactionTest.java @@ -39,7 +39,7 @@ public class TokenFreezeTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java index 4bb0390b84..d912ca40a0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenGrantKycTransactionTest.java @@ -43,7 +43,7 @@ public class TokenGrantKycTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java index 924e14ded1..5579b4e359 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoQueryTest.java @@ -32,7 +32,7 @@ public class TokenInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java index 3d82f4abe6..6e0dfa52fc 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenInfoTest.java @@ -93,7 +93,7 @@ public class TokenInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java index 0053cc3952..fe20d79cd2 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenMintTransactionTest.java @@ -28,7 +28,7 @@ public class TokenMintTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java index 5d7bab65e7..d3910563ed 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoQueryTest.java @@ -11,7 +11,7 @@ public class TokenNftInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java index 35ce458c35..4d290be154 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenNftInfoTest.java @@ -16,7 +16,7 @@ public class TokenNftInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java index ef99024f48..8afd61f516 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenPauseTransactionTest.java @@ -41,7 +41,7 @@ public class TokenPauseTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java index 415a90f104..6ca229b6f0 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRejectTransactionTest.java @@ -54,7 +54,7 @@ public class TokenRejectTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java index d96e713a3c..a0e202fb5f 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRelationshipTest.java @@ -10,7 +10,7 @@ public class TokenRelationshipTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java index 7f156951fa..e8a270028d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenRevokeKycTransactionTest.java @@ -43,7 +43,7 @@ public class TokenRevokeKycTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java index e1bc732d31..fbfdf4067a 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenSupplyTypeTest.java @@ -14,7 +14,7 @@ public class TokenSupplyTypeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java index 9e1c06dd7c..dbc37dba6c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenTypeTest.java @@ -32,7 +32,7 @@ public class TokenTypeTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java index 21e5a2673c..de42e6e290 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnfreezeTransactionTest.java @@ -39,7 +39,7 @@ public class TokenUnfreezeTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java index 26e56eb354..a92dbaefeb 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUnpauseTransactionTest.java @@ -42,7 +42,7 @@ public class TokenUnpauseTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java index 824641a693..16d45e1d09 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateNftsTransactionTest.java @@ -45,7 +45,7 @@ public class TokenUpdateNftsTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java index f38ee86da2..bade583e97 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenUpdateTransactionTest.java @@ -78,7 +78,7 @@ public class TokenUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java index 0e3a4c19cd..5fb777400d 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TokenWipeTransactionTest.java @@ -47,7 +47,7 @@ public class TokenWipeTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java index 1612ec17cb..2528b67d20 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicCreateTransactionTest.java @@ -40,7 +40,7 @@ public class TopicCreateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java index 09971927a5..964e8a33da 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicDeleteTransactionTest.java @@ -39,7 +39,7 @@ public class TopicDeleteTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java index 28e8368509..a2d5df673c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicIdTest.java @@ -29,7 +29,7 @@ class TopicIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java index 9ee4eaf73b..23d2d16421 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoQueryTest.java @@ -28,7 +28,7 @@ public class TopicInfoQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java index ecd3d6ad93..a75437b51b 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicInfoTest.java @@ -55,7 +55,7 @@ public class TopicInfoTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java index e78974cc67..18adba0c17 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageQueryTest.java @@ -76,7 +76,7 @@ class TopicMessageQueryTest { @BeforeAll static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java index 185627e3ee..0ff928f529 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicMessageSubmitTransactionTest.java @@ -24,7 +24,7 @@ public class TopicMessageSubmitTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java index 5fc1e2e26a..6214b47555 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TopicUpdateTransactionTest.java @@ -55,7 +55,7 @@ public class TopicUpdateTransactionTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java index 3017a50179..17e212adf8 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionIdTest.java @@ -34,7 +34,7 @@ class TransactionIdTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java index dc128cb85d..946b36c97c 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptQueryTest.java @@ -35,7 +35,7 @@ public class TransactionReceiptQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java index 97cc780b4f..5e950a62fd 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionReceiptTest.java @@ -19,7 +19,7 @@ public class TransactionReceiptTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java index f7d531e310..15590be199 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordQueryTest.java @@ -35,7 +35,7 @@ public class TransactionRecordQueryTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll diff --git a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java index 0616d408dc..f68ed794f7 100644 --- a/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java +++ b/sdk/src/test/java/com/hedera/hashgraph/sdk/TransactionRecordTest.java @@ -44,7 +44,7 @@ public class TransactionRecordTest { @BeforeAll public static void beforeAll() { - SnapshotMatcher.start(); + SnapshotMatcher.start(Snapshot::asJsonString); } @AfterAll