use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneLockFundsTransaction.
@Test
void shouldCreateStandaloneLockFundsTransaction() {
TransactionInfoDTO lockFundsTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneLockFundsTransaction.json");
Transaction lockFundsTransaction = map(lockFundsTransactionDTO);
validateStandaloneTransaction(lockFundsTransaction, lockFundsTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateMosaicAliasTransaction.
@Test
void shouldCreateAggregateMosaicAliasTransaction() {
TransactionInfoDTO aggregateTransferTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateMosaicAliasTransaction.json");
Transaction aggregateTransferTransaction = map(aggregateTransferTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateTransferTransaction, aggregateTransferTransactionDTO);
MosaicAliasTransaction transaction = (MosaicAliasTransaction) ((AggregateTransaction) aggregateTransferTransaction).getInnerTransactions().get(0);
Assertions.assertEquals(new BigInteger("884562898459306"), transaction.getMosaicId().getId());
Assertions.assertEquals(AliasAction.UNLINK, 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 shouldCreateStandaloneSecretLockTransaction.
@Test
void shouldCreateStandaloneSecretLockTransaction() {
TransactionInfoDTO secretLockTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneSecretLockTransaction.json");
Transaction secretLockTransaction = map(secretLockTransactionDTO);
validateStandaloneTransaction(secretLockTransaction, secretLockTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneRootNamespaceCreationTransaction.
@Test
void shouldCreateStandaloneRootNamespaceCreationTransaction() {
TransactionInfoDTO namespaceCreationTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneRootNamespaceCreationTransaction.json");
Transaction namespaceCreationTransaction = map(namespaceCreationTransactionDTO);
validateStandaloneTransaction(namespaceCreationTransaction, namespaceCreationTransactionDTO);
}
use of io.nem.symbol.sdk.model.transaction.Transaction in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneMosaicGlobalRestrictionTransaction.
@Test
void shouldCreateStandaloneMosaicGlobalRestrictionTransaction() {
TransactionInfoDTO mosaicGlobalRestrictionTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneMosaicGlobalRestrictionTransaction.json");
Transaction mosaicGlobalRestrictionTransaction = map(mosaicGlobalRestrictionTransactionDTO);
validateStandaloneTransaction(mosaicGlobalRestrictionTransaction, mosaicGlobalRestrictionTransactionDTO);
}
Aggregations