use of com.hedera.hashgraph.sdk.ReceiptStatusException in project hedera-mirror-node by hashgraph.
the class PublishMetricsTest method onErrorReceiptStatusException.
@Test
void onErrorReceiptStatusException() throws Exception {
TransactionId transactionId = TransactionId.withValidStart(AccountId.fromString("0.0.3"), Instant.now());
TransactionReceipt transactionReceipt = receipt(ResponseCodeEnum.SUCCESS);
Constructor<ReceiptStatusException> constructor = getDeclaredConstructor(ReceiptStatusException.class);
constructor.setAccessible(true);
ReceiptStatusException receiptStatusException = constructor.newInstance(transactionId, transactionReceipt);
onError(receiptStatusException, ResponseCodeEnum.SUCCESS.toString());
}
Aggregations