use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateSecretLockTransaction.
@Test
void shouldCreateAggregateSecretLockTransaction() {
TransactionInfoDTO aggregateSecretLockTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateSecretLockTransaction.json");
Transaction aggregateSecretLockTransaction = map(aggregateSecretLockTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateSecretLockTransaction, aggregateSecretLockTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldFailWhenNotTransactionType.
@Test
void shouldFailWhenNotTransactionType() {
TransactionInfoDTO transaction = new TransactionInfoDTO();
Assertions.assertEquals("Unknown error mapping transaction: IllegalArgumentException: Transaction cannot be mapped, object does not not have transaction type.\n" + "{ }", Assertions.assertThrows(IllegalArgumentException.class, () -> map(transaction)).getMessage());
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateSubNamespaceCreationTransaction.
@Test
void shouldCreateAggregateSubNamespaceCreationTransaction() {
TransactionInfoDTO aggregateNamespaceCreationTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateSubNamespaceCreationTransaction.json");
Transaction aggregateNamespaceCreationTransaction = map(aggregateNamespaceCreationTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateNamespaceCreationTransaction, aggregateNamespaceCreationTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateAggregateMosaicSupplyChangeTransaction.
@Test
void shouldCreateAggregateMosaicSupplyChangeTransaction() {
TransactionInfoDTO aggregateMosaicSupplyChangeTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("aggregateMosaicSupplyChangeTransaction.json");
Transaction aggregateMosaicSupplyChangeTransaction = map(aggregateMosaicSupplyChangeTransactionDTO);
validateAggregateTransaction((AggregateTransaction) aggregateMosaicSupplyChangeTransaction, aggregateMosaicSupplyChangeTransactionDTO);
}
use of io.nem.symbol.sdk.openapi.vertx.model.TransactionInfoDTO in project nem2-sdk-java by nemtech.
the class TransactionMapperVertxTest method shouldCreateTransferEmptyMessage.
@Test
void shouldCreateTransferEmptyMessage() {
TransactionInfoDTO transferTransactionDTO = TestHelperVertx.loadTransactionInfoDTO("transferEmptyMessage.json");
TransferTransaction transferTransaction = (TransferTransaction) map(transferTransactionDTO);
validateStandaloneTransaction(transferTransaction, transferTransactionDTO);
Assertions.assertEquals("", transferTransaction.getMessage().get().getText());
}
Aggregations