Skip to content

Commit b63bf5f

Browse files
committed
fixed tests
1 parent 499cfea commit b63bf5f

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

‎src/test/java/jota/IotaAPITest.java‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
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;
9-
import jota.error.NotEnoughBalanceException;
6+
import jota.error.*;
107
import jota.model.Bundle;
118
import jota.model.Transaction;
129
import 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

Comments
 (0)