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:
Narendra Pathai
2018-10-17 21:11:31 +05:30
parent db33cc533b
commit 2f569d670a
39 changed files with 96 additions and 146 deletions

View File

@@ -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............");

View 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);