use of io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneMultisigModificationTransaction.
@Test
void shouldCreateStandaloneMultisigModificationTransaction() {
TransactionInfoDTO multisigModificationTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneMultisigModificationTransaction.json");
Transaction multisigModificationTransaction = map(multisigModificationTransactionDTO);
validateStandaloneTransaction(multisigModificationTransaction, multisigModificationTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateTransferEmptyMessage.
@Test
void shouldCreateTransferEmptyMessage() {
TransactionInfoDTO transferTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("transferEmptyMessage.json");
TransferTransaction transferTransaction = (TransferTransaction) map(transferTransactionDTO);
validateStandaloneTransaction(transferTransaction, transferTransactionDTO);
Assertions.assertEquals("", transferTransaction.getMessage().get().getText());
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAggregateMosaicSupplyChangeTransaction.
@Test
void shouldCreateAggregateMosaicSupplyChangeTransaction() {
TransactionInfoDTO aggregateMosaicSupplyChangeTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("aggregateMosaicSupplyChangeTransaction.json");
Transaction aggregateMosaicSupplyChangeTransaction = map(aggregateMosaicSupplyChangeTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateMosaicSupplyChangeTransaction, aggregateMosaicSupplyChangeTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateAccountMosaicRestriction.
@Test
public void shouldCreateAccountMosaicRestriction() throws Exception {
TransactionInfoDTO transactionInfoDTO = TestHelperOkHttp.loadTransactionInfoDTO("accountMosaicRestrictionTransaction.json");
AccountMosaicRestrictionTransaction transaction = (AccountMosaicRestrictionTransaction) map(transactionInfoDTO);
validateStandaloneTransaction(transaction, transactionInfoDTO);
Assertions.assertEquals(AccountMosaicRestrictionFlags.ALLOW_INCOMING_MOSAIC, transaction.getRestrictionFlags());
Assertions.assertEquals(1, transaction.getRestrictionAdditions().size());
Assertions.assertEquals("00003646934825AA", transaction.getRestrictionAdditions().get(0).getIdAsHex());
}
use of io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperOkHttpTest method shouldCreateStandaloneMosaicCreationTransaction.
@Test
void shouldCreateStandaloneMosaicCreationTransaction() {
TransactionInfoDTO mosaicCreationTransactionDTO = TestHelperOkHttp.loadTransactionInfoDTO("standaloneMosaicCreationTransaction.json");
Transaction mosaicCreationTransaction = map(mosaicCreationTransactionDTO);
validateStandaloneTransaction(mosaicCreationTransaction, mosaicCreationTransactionDTO);
}
Aggregations