From 6f2cbd94e223ef64a6bd40cb53c81d6d6136a551 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Wed, 30 Nov 2016 10:54:20 -0500 Subject: [PATCH] Basic tests for account update pre-requisites --- src/main/java/com/luminiasoft/bitshares/Asset.java | 2 -- src/main/java/com/luminiasoft/bitshares/Main.java | 3 ++- src/main/java/com/luminiasoft/bitshares/Test.java | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/luminiasoft/bitshares/Asset.java b/src/main/java/com/luminiasoft/bitshares/Asset.java index e345ec9..e6a1103 100644 --- a/src/main/java/com/luminiasoft/bitshares/Asset.java +++ b/src/main/java/com/luminiasoft/bitshares/Asset.java @@ -1,7 +1,5 @@ package com.luminiasoft.bitshares; -import com.luminiasoft.bitshares.interfaces.JsonSerializable; - /** * Created by nelson on 11/9/16. */ diff --git a/src/main/java/com/luminiasoft/bitshares/Main.java b/src/main/java/com/luminiasoft/bitshares/Main.java index 84fd707..01839ae 100644 --- a/src/main/java/com/luminiasoft/bitshares/Main.java +++ b/src/main/java/com/luminiasoft/bitshares/Main.java @@ -38,6 +38,7 @@ public class Main { // e.printStackTrace(); // } // test.testCustomSerializer(); + test.testUserAccountSerialization(); // test.testTransactionSerialization(); // test.testLoginSerialization(); // test.testNetworkBroadcastSerialization(); @@ -58,6 +59,6 @@ public class Main { // test.testRelativeAccountHistory(); // test.testingInvoiceGeneration(); // test.testCompression(); - test.testCreateBinFile(); +// test.testCreateBinFile(); } } diff --git a/src/main/java/com/luminiasoft/bitshares/Test.java b/src/main/java/com/luminiasoft/bitshares/Test.java index cf511aa..bde3fb0 100644 --- a/src/main/java/com/luminiasoft/bitshares/Test.java +++ b/src/main/java/com/luminiasoft/bitshares/Test.java @@ -333,6 +333,11 @@ public class Test { System.out.println(jsonAmount); } + public void testUserAccountSerialization(){ + UserAccount account = new UserAccount("1.2.138632"); + System.out.println(Util.bytesToHex(account.toBytes())); + } + public void testTransactionSerialization() { try { Transaction transaction = new TransferTransactionBuilder()