use of com.hedera.services.context.MutableStateChildren in project hedera-services by hashgraph.
the class GetAccountRecordsAnswerTest method setup.
@BeforeEach
private void setup() throws Exception {
payerAccount = MerkleAccountFactory.newAccount().accountKeys(COMPLEX_KEY_ACCOUNT_KT).proxy(asAccount("1.2.3")).senderThreshold(1_234L).receiverThreshold(4_321L).receiverSigRequired(true).balance(555L).autoRenewPeriod(1_000_000L).expirationTime(9_999_999L).get();
payerAccount.records().offer(recordOne());
payerAccount.records().offer(recordTwo());
accounts = mock(MerkleMap.class);
given(accounts.get(EntityNum.fromAccountId(asAccount(target)))).willReturn(payerAccount);
final MutableStateChildren children = new MutableStateChildren();
children.setAccounts(accounts);
view = new StateView(null, null, children, null);
optionValidator = mock(OptionValidator.class);
subject = new GetAccountRecordsAnswer(new AnswerFunctions(dynamicProperties), optionValidator);
}
Aggregations