use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneMosaicAddressRestrictionTransaction.
@Test
void shouldCreateStandaloneMosaicAddressRestrictionTransaction() {
TransactionInfoDTO mosaicAddressRestrictionTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneMosaicAddressRestrictionTransaction.json");
Transaction mosaicAddressRestrictionTransaction = map(mosaicAddressRestrictionTransactionDTO);
validateStandaloneTransaction(mosaicAddressRestrictionTransaction, mosaicAddressRestrictionTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateSecretLockTransaction.
@Test
void shouldCreateAggregateSecretLockTransaction() {
TransactionInfoDTO aggregateSecretLockTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateSecretLockTransaction.json");
Transaction aggregateSecretLockTransaction = map(aggregateSecretLockTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateSecretLockTransaction, aggregateSecretLockTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateTransferTransactionUsingAlias.
@Test
void shouldCreateAggregateTransferTransactionUsingAlias() {
TransactionInfoDTO aggregateTransferTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateTransferTransactionUsingAlias.json");
Transaction aggregateTransferTransaction = map(aggregateTransferTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateTransferTransaction, aggregateTransferTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateAddressAliasTransaction.
@Test
void shouldCreateAggregateAddressAliasTransaction() {
TransactionInfoDTO aggregateTransferTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateAddressAliasTransaction.json");
Transaction aggregateTransferTransaction = map(aggregateTransferTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateTransferTransaction, aggregateTransferTransactionDTO);
AddressAliasTransaction transaction = (AddressAliasTransaction) ((AggregateTransaction) aggregateTransferTransaction).getInnerTransactions().get(0);
Assertions.assertEquals("SDT4THYNVUQK2GM6XXYTWHZXSPE3AUA2GTDPM2Q", transaction.getAddress().plain());
Assertions.assertEquals(AliasAction.LINK, transaction.getAliasAction());
Assertions.assertEquals(new BigInteger("307262000798378"), transaction.getNamespaceId().getId());
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneSubNamespaceCreationTransaction.
@Test
void shouldCreateStandaloneSubNamespaceCreationTransaction() {
TransactionInfoDTO namespaceCreationTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneSubNamespaceCreationTransaction.json");
Transaction namespaceCreationTransaction = map(namespaceCreationTransactionDTO);
validateStandaloneTransaction(namespaceCreationTransaction, namespaceCreationTransactionDTO);
}
Aggregations