Made minor changes in some patterns such as removed throws clause where not needed, changed incorrect order of arguments in assertEquals
This commit is contained in:
@@ -74,7 +74,7 @@ public class App {
|
||||
LOGGER.info("Running the system first time............");
|
||||
eventProcessor.reset();
|
||||
|
||||
LOGGER.info("Creating th accounts............");
|
||||
LOGGER.info("Creating the accounts............");
|
||||
|
||||
eventProcessor.process(new AccountCreateEvent(
|
||||
0, new Date().getTime(), ACCOUNT_OF_DAENERYS, "Daenerys Targaryen"));
|
||||
@@ -98,7 +98,7 @@ public class App {
|
||||
LOGGER.info(AccountAggregate.getAccount(ACCOUNT_OF_DAENERYS).toString());
|
||||
LOGGER.info(AccountAggregate.getAccount(ACCOUNT_OF_JON).toString());
|
||||
|
||||
LOGGER.info("At that point system had a shot down, state in memory is cleared............");
|
||||
LOGGER.info("At that point system had a shut down, state in memory is cleared............");
|
||||
AccountAggregate.resetState();
|
||||
|
||||
LOGGER.info("Recover the system by the events in journal file............");
|
||||
|
@@ -92,7 +92,7 @@ public class MoneyTransferEvent extends DomainEvent {
|
||||
}
|
||||
Account accountTo = AccountAggregate.getAccount(accountNoTo);
|
||||
if (accountTo == null) {
|
||||
throw new RuntimeException("Account not found" + accountTo);
|
||||
throw new RuntimeException("Account not found " + accountNoTo);
|
||||
}
|
||||
|
||||
accountFrom.handleTransferFromEvent(this);
|
||||
|
Reference in New Issue
Block a user