We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c30557a commit 00b1d5bCopy full SHA for 00b1d5b
src/main/java/io/diffblue/corebanking/account/Account.java
@@ -91,7 +91,7 @@ public void takeFromBalance(final long amount) throws AccountException {
91
if (getAccountState() != AccountState.OPEN) {
92
throw new AccountException("Cannot take from balance, account is closed.");
93
}
94
- if (currentBalance + amount < 0) {
+ if (currentBalance - amount < 0) {
95
throw new AccountException(
96
"Trying to take "
97
+ amount
@@ -208,7 +208,7 @@ public class AccountStatement {
208
private final List<Transaction> transactions;
209
210
/** Constructor. */
211
- private AccountStatement() {
+ public AccountStatement() {
212
transactions = new ArrayList<Transaction>();
213
214
0 commit comments