use of com.hederahashgraph.api.proto.java.Transaction in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerFileTest method fileSystemUnDeleteTransaction.
@Test
void fileSystemUnDeleteTransaction() {
Transaction systemUndeleteTransaction = systemUnDeleteTransaction();
TransactionBody transactionBody = getTransactionBody(systemUndeleteTransaction);
TransactionRecord record = transactionRecord(transactionBody);
parseRecordItemAndCommit(new RecordItem(systemUndeleteTransaction, record));
assertAll(() -> assertRowCountOnSuccessNoData(FILE_ID), () -> assertTransactionAndRecord(transactionBody, record), () -> assertFileEntityHasNullFields(record.getConsensusTimestamp()));
}
use of com.hederahashgraph.api.proto.java.Transaction in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerFileTest method fileDeleteFailedTransaction.
@Test
void fileDeleteFailedTransaction() {
Transaction fileDeleteTransaction = fileDeleteTransaction();
TransactionBody transactionBody = getTransactionBody(fileDeleteTransaction);
TransactionRecord record = transactionRecord(transactionBody, ResponseCodeEnum.INSUFFICIENT_PAYER_BALANCE);
parseRecordItemAndCommit(new RecordItem(fileDeleteTransaction, record));
assertAll(() -> assertRowCountOnFailureNoData(), () -> assertFailedFileTransaction(transactionBody, record));
}
use of com.hederahashgraph.api.proto.java.Transaction in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerFileTest method fileUpdateAllToNew.
@Test
void fileUpdateAllToNew() {
Transaction transaction = fileUpdateAllTransaction();
TransactionBody transactionBody = getTransactionBody(transaction);
TransactionRecord record = transactionRecord(transactionBody);
parseRecordItemAndCommit(new RecordItem(transaction, record));
assertAll(() -> assertRowCountOnSuccess(FILE_ID), () -> assertTransactionAndRecord(transactionBody, record), () -> assertFileEntityAndData(transactionBody.getFileUpdate(), record.getConsensusTimestamp()));
}
use of com.hederahashgraph.api.proto.java.Transaction in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerFreezeTest method freezeInvalidTransaction.
@Test
void freezeInvalidTransaction() {
Transaction transaction = freezeTransaction();
TransactionBody transactionBody = getTransactionBody(transaction);
TransactionRecord record = transactionRecord(transactionBody, ResponseCodeEnum.INSUFFICIENT_ACCOUNT_BALANCE);
parseRecordItemAndCommit(new RecordItem(transaction, record));
assertAll(() -> assertRowCount(), () -> assertTransactionAndRecord(transactionBody, record));
}
use of com.hederahashgraph.api.proto.java.Transaction in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerFreezeTest method freeze.
@Test
void freeze() {
Transaction transaction = freezeTransaction();
TransactionBody transactionBody = getTransactionBody(transaction);
TransactionRecord record = transactionRecord(transactionBody);
parseRecordItemAndCommit(new RecordItem(transaction, record));
assertAll(() -> assertRowCount(), () -> assertTransactionAndRecord(transactionBody, record));
}
Aggregations