Skip to content

Commit 8eb0079

Browse files
committed
added tests
1 parent 11bb41a commit 8eb0079

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎src/test/java/jota/IotaAPIProxyTest.java‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
import com.google.gson.Gson;
44
import com.google.gson.GsonBuilder;
55
import jota.dto.response.*;
6+
import jota.error.ArgumentException;
7+
import jota.error.InvalidBundleException;
8+
import jota.error.InvalidSignatureException;
69
import jota.model.Transfer;
710
import org.hamcrest.core.Is;
811
import org.hamcrest.core.IsNull;
@@ -184,4 +187,15 @@ public void shouldGetLastInclusionState() {
184187
public void shouldFindTransactionObjects() {
185188
assertThat(proxy.findTransactionObjects(new String[]{TEST_ADDRESS_WITH_CHECKSUM}), IsNull.notNullValue());
186189
}
190+
191+
@Test
192+
public void shouldGetBundle() throws InvalidBundleException, ArgumentException, InvalidSignatureException {
193+
assertThat(proxy.getBundle(TEST_HASH), IsNull.notNullValue());
194+
}
195+
196+
@Test
197+
public void shouldGetTrasfers() throws InvalidBundleException, ArgumentException, InvalidSignatureException {
198+
assertThat(proxy.getTransfers(TEST_SEED, 0, 2, true), IsNull.notNullValue());
199+
assertThat(proxy.getTransfers(TEST_SEED, 0, 2, false), IsNull.notNullValue());
200+
}
187201
}

0 commit comments

Comments
 (0)