use of com.hedera.services.context.domain.process.TxnValidityAndFeeReq in project hedera-services by hashgraph.
the class TransactionPrecheckTest method abortsOnInsolvencyForTopLevel.
@Test
void abortsOnInsolvencyForTopLevel() {
givenActivePlatform();
givenStructuralSoundness();
givenValidSyntax();
givenValidSemantics();
given(solvencyPrecheck.assessSansSvcFees(any())).willReturn(new TxnValidityAndFeeReq(INSUFFICIENT_TX_FEE, reqFee));
final var topLevelResponse = subject.performForTopLevel(Transaction.getDefaultInstance());
assertFailure(INSUFFICIENT_TX_FEE, reqFee, topLevelResponse);
}
Aggregations