From 50d93158bad7fdf212a978acda13681336e61a20 Mon Sep 17 00:00:00 2001 From: Satya Date: Sun, 10 Nov 2024 14:03:01 +0800 Subject: [PATCH] #466 fixed tests --- .../transaction/spec/AuxiliaryDataTest.java | 2 +- .../src/test/resources/json-metadata.json | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 transaction-spec/src/test/resources/json-metadata.json diff --git a/transaction-spec/src/test/java/com/bloxbean/cardano/client/transaction/spec/AuxiliaryDataTest.java b/transaction-spec/src/test/java/com/bloxbean/cardano/client/transaction/spec/AuxiliaryDataTest.java index 5b9d6fc0..91d1a729 100644 --- a/transaction-spec/src/test/java/com/bloxbean/cardano/client/transaction/spec/AuxiliaryDataTest.java +++ b/transaction-spec/src/test/java/com/bloxbean/cardano/client/transaction/spec/AuxiliaryDataTest.java @@ -32,7 +32,7 @@ public class AuxiliaryDataTest { @Test public void getAuxiliaryDataHash_checkKeysOrder_whenMetadataIsSet() throws Exception { - JsonNode json = loadJsonMetadata("json-4"); + JsonNode json = loadJsonMetadata("json-1"); Metadata metadata = JsonNoSchemaToMetadataConverter.jsonToCborMetadata(json.toString()); AuxiliaryData auxiliaryData = AuxiliaryData.builder() diff --git a/transaction-spec/src/test/resources/json-metadata.json b/transaction-spec/src/test/resources/json-metadata.json new file mode 100644 index 00000000..fa3ff743 --- /dev/null +++ b/transaction-spec/src/test/resources/json-metadata.json @@ -0,0 +1,17 @@ +{ + "json-1": { + "17802948329108123211": {}, + "945845007538436815": "0x4ebc4ea3b43bb0cc76bb326f17a30d8f", + "1351859328329939190": { + "0x0e": "0x3bdefda92265", + "0x14ff8d": -13139667 + }, + "7505166164059511819": "rceHlUxXlWmZJcxYd", + "7274669146951118819": -1481497267, + "1302243434517352162": [ + "UJB3", + -16236436 + ] + } + +}