33import com .google .gson .Gson ;
44import com .google .gson .GsonBuilder ;
55import jota .dto .response .*;
6- import jota .error .ArgumentException ;
7- import jota .error .InvalidBundleException ;
8- import jota .error .InvalidSignatureException ;
9- import jota .error .NotEnoughBalanceException ;
6+ import jota .error .*;
107import jota .model .Bundle ;
118import jota .model .Transaction ;
129import jota .model .Transfer ;
@@ -110,13 +107,13 @@ public void shouldPrepareTransfer() {
110107 }
111108
112109 @ Test
113- public void shouldGetLastInclusionState () {
110+ public void shouldGetLastInclusionState () throws NoNodeInfoException {
114111 GetInclusionStateResponse res = iotaClient .getLatestInclusion (new String []{TEST_HASH });
115112 assertThat (res .getStates (), IsNull .notNullValue ());
116113 }
117114
118115 @ Test
119- public void shouldFindTransactionObjects () {
116+ public void shouldFindTransactionObjects () throws NoTransactionExcpection {
120117 List <Transaction > ftr = iotaClient .findTransactionObjects (TEST_ADDRESSES );
121118 assertThat (ftr , IsNull .notNullValue ());
122119 }
@@ -128,7 +125,7 @@ public void shouldGetBundle() throws InvalidBundleException, ArgumentException,
128125 }
129126
130127 @ Test
131- public void shouldGetTransfers () throws InvalidBundleException , ArgumentException , InvalidSignatureException {
128+ public void shouldGetTransfers () throws InvalidBundleException , ArgumentException , InvalidSignatureException , NoAddressException , NoInclusionStatesExcpection , NoNodeInfoException , NoTransactionExcpection {
132129 GetTransferResponse gtr = iotaClient .getTransfers (TEST_SEED1 , 0 , 0 , false );
133130 assertThat (gtr .getTransfers (), IsNull .notNullValue ());
134131
0 commit comments