use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionRepositoryOkHttpImplTest method shouldGetTransactionUnconfirmed.
@Test
public void shouldGetTransactionUnconfirmed() throws Exception {
TransactionInfoDTO transactionInfoDTO = loadTransactionInfoDTO("aggregateMosaicCreationTransaction.json", TransactionInfoDTO.class);
String hash = jsonHelper.getString(transactionInfoDTO, "meta", "hash");
mockRemoteCall(transactionInfoDTO);
Transaction transaction = repository.getTransaction(TransactionGroup.UNCONFIRMED, hash).toFuture().get();
Assertions.assertNotNull(transaction);
Assertions.assertEquals(hash, transaction.getTransactionInfo().get().getHash().get());
Assertions.assertEquals(TransactionGroup.UNCONFIRMED, transaction.getGroup().get());
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateLockFundsTransaction.
@Test
void shouldCreateAggregateLockFundsTransaction() {
TransactionInfoDTO aggregateLockFundsTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateLockFundsTransaction.json");
Transaction lockFundsTransaction = map(aggregateLockFundsTransactionDTO);
validateAggregateTransaction((AggregateTransaction) lockFundsTransaction, aggregateLockFundsTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateMosaicGlobalRestrictionTransaction.
@Test
void shouldCreateAggregateMosaicGlobalRestrictionTransaction() {
TransactionInfoDTO aggregateMosaicGlobalRestrictionTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateMosaicGlobalRestrictionTransaction.json");
Transaction aggregateMosaicGlobalRestrictionTransaction = map(aggregateMosaicGlobalRestrictionTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateMosaicGlobalRestrictionTransaction, aggregateMosaicGlobalRestrictionTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateSecretProofTransaction.
@Test
void shouldCreateAggregateSecretProofTransaction() {
TransactionInfoDTO aggregateSecretProofTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateSecretProofTransaction.json");
Transaction aggregateSecretProofTransaction = map(aggregateSecretProofTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateSecretProofTransaction, aggregateSecretProofTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateMosaicCreationTransaction.
@Test
void shouldCreateAggregateMosaicCreationTransaction() {
TransactionInfoDTO aggregateMosaicCreationTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateMosaicCreationTransaction.json");
Transaction aggregateMosaicCreationTransaction = map(aggregateMosaicCreationTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateMosaicCreationTransaction, aggregateMosaicCreationTransactionDTO);
}
Aggregations