From 8eb007993bc9edad08e26bc0093687f4ec151ad9 Mon Sep 17 00:00:00 2001 From: pinpong Date: Tue, 27 Dec 2016 23:51:12 +0100 Subject: [PATCH] added tests --- src/test/java/jota/IotaAPIProxyTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/java/jota/IotaAPIProxyTest.java b/src/test/java/jota/IotaAPIProxyTest.java index 02ab732..e8b9299 100644 --- a/src/test/java/jota/IotaAPIProxyTest.java +++ b/src/test/java/jota/IotaAPIProxyTest.java @@ -3,6 +3,9 @@ package jota; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import jota.dto.response.*; +import jota.error.ArgumentException; +import jota.error.InvalidBundleException; +import jota.error.InvalidSignatureException; import jota.model.Transfer; import org.hamcrest.core.Is; import org.hamcrest.core.IsNull; @@ -184,4 +187,15 @@ public class IotaAPIProxyTest { public void shouldFindTransactionObjects() { assertThat(proxy.findTransactionObjects(new String[]{TEST_ADDRESS_WITH_CHECKSUM}), IsNull.notNullValue()); } + + @Test + public void shouldGetBundle() throws InvalidBundleException, ArgumentException, InvalidSignatureException { + assertThat(proxy.getBundle(TEST_HASH), IsNull.notNullValue()); + } + + @Test + public void shouldGetTrasfers() throws InvalidBundleException, ArgumentException, InvalidSignatureException { + assertThat(proxy.getTransfers(TEST_SEED, 0, 2, true), IsNull.notNullValue()); + assertThat(proxy.getTransfers(TEST_SEED, 0, 2, false), IsNull.notNullValue()); + } } \ No newline at end of file