use of io.nem.symbol.sdk.api.TransactionStatementSearchCriteria in project nem2-sdk-java by nemtech.
the class ReceiptRepositoryOkHttpImplTest method searchReceipts.
@Test
public void searchReceipts() throws Exception {
List<TransactionStatementInfoDTO> transactionStatementInfoDTOS = jsonHelper.parseList(TestHelperOkHttp.loadResource("Recipient-TransactionResolutionStatement.json"), TransactionStatementInfoDTO.class);
mockRemoteCall(toPage(transactionStatementInfoDTOS));
BigInteger height = BigInteger.valueOf(10L);
List<TransactionStatement> transactionStatements = repository.searchReceipts(new TransactionStatementSearchCriteria().height(height)).toFuture().get().getData();
Assertions.assertEquals(transactionStatementInfoDTOS.size(), transactionStatements.size());
Assertions.assertEquals("82FEFFC329618ECF56B8A6FDBCFCF1BF0A4B6747AB6A5746B195CEEB810F335C", transactionStatements.get(0).generateHash().toUpperCase());
}
Aggregations