use of com.hedera.mirror.common.domain.transaction.RecordItem 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.hedera.mirror.common.domain.transaction.RecordItem 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.hedera.mirror.common.domain.transaction.RecordItem 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));
}
use of com.hedera.mirror.common.domain.transaction.RecordItem in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerPerformanceCryptoTest method getCreateAccountRecordItem.
private RecordItem getCreateAccountRecordItem(int accountNum) throws Exception {
Transaction createTransaction = cryptoCreateTransaction();
TransactionBody createTransactionBody = getTransactionBody(createTransaction);
TransactionRecord createRecord = transactionRecord(createTransactionBody, ResponseCodeEnum.SUCCESS.getNumber(), accountNum);
return new RecordItem(createTransaction, createRecord);
}
use of com.hedera.mirror.common.domain.transaction.RecordItem in project hedera-mirror-node by hashgraph.
the class EntityRecordItemListenerPerformanceCryptoTest method getUpdateAccountRecordItem.
private RecordItem getUpdateAccountRecordItem(int accountNum) throws Exception {
Transaction updateTransaction = cryptoUpdateTransaction(AccountID.newBuilder().setShardNum(0).setRealmNum(0).setAccountNum(accountNum).build());
TransactionBody updateTransactionBody = getTransactionBody(updateTransaction);
TransactionRecord createRecord = transactionRecord(updateTransactionBody, ResponseCodeEnum.SUCCESS.getNumber(), accountNum);
return new RecordItem(updateTransaction, createRecord);
}
Aggregations