Search in sources :

Example 1 with TransactionStatusRepository

use of io.nem.symbol.sdk.api.TransactionStatusRepository in project nem2-sdk-java by nemtech.

the class TransactionRepositoryIntegrationTest method getTransactionsStatuses.

@ParameterizedTest
@EnumSource(RepositoryType.class)
public void getTransactionsStatuses(RepositoryType type) {
    TransactionStatusRepository transactionRepository = getTransactionStatusRepository(type);
    List<TransactionStatus> transactionStatuses = get(transactionRepository.getTransactionStatuses(Collections.singletonList(transactionHash)));
    assertEquals(transactionHash, transactionStatuses.get(0).getHash());
}
Also used : TransactionStatusRepository(io.nem.symbol.sdk.api.TransactionStatusRepository) TransactionStatus(io.nem.symbol.sdk.model.transaction.TransactionStatus) EnumSource(org.junit.jupiter.params.provider.EnumSource) ParameterizedTest(org.junit.jupiter.params.ParameterizedTest)

Aggregations

TransactionStatusRepository (io.nem.symbol.sdk.api.TransactionStatusRepository)1 TransactionStatus (io.nem.symbol.sdk.model.transaction.TransactionStatus)1 ParameterizedTest (org.junit.jupiter.params.ParameterizedTest)1 EnumSource (org.junit.jupiter.params.provider.EnumSource)1