2728293031323334
public class CreateBrokerageAccountTest extends BaseAccountsTest { public Money openNewAccount() throws Exception { this.createUser1(); this.createBrokerageAccount1(); BrokerageAccount account = brokerageAccountService.findAccount(brokerageAccount1Id); return account.getCashPosition(); }
149150151152153154155156157
} } public Money getCashPosition(String accountName) { Long accountId = getAccountId(accountName); BrokerageAccount account = brokerageAccountService.findAccount(accountId); return account.getCashPosition(); }
404142434445464748
USERNAME1, new Money(amount), externalAccount1Id, brokerageAccount1Id); } public Money getBrokerageAccountCashPosition() { BrokerageAccount account = brokerageAccountService.findAccount(brokerageAccount1Id); return account.getCashPosition(); }