@Test public void unexpectedTradeEventsAreSendToConfiguredMailAddress() throws MailSendingException { cut.unexpectedEvent(SOME_TEXT); verify(mailSender).sendMail(eq(SOME_SENDER_ADDRESS), eq(SOME_RECIVER_ADDRESS), anyString(), eq(SOME_TEXT)); }
@Override public void unexpectedEvent(final String message) { safeSendMail("UNEXPECTED TRADE EVENT", message); }
MailNotifier implements TraderNotifier { @Override public void unexpectedEvent(final String message) { safeSendMail("UNEXPECTED TRADE EVENT", message); } }
MailNotifier implements TraderNotifier { @Override public void unexpectedEvent(final String message) { safeSendMail("UNEXPECTED TRADE EVENT", message); } MailNotifier(final MailSender mailSender, final CompletedTradeMarkDownFormater formater,
            final AdmininstratorNotifier admin, final String sender, final String receiver); }
MailNotifier implements TraderNotifier { @Override public void unexpectedEvent(final String message) { safeSendMail("UNEXPECTED TRADE EVENT", message); } MailNotifier(final MailSender mailSender, final CompletedTradeMarkDownFormater formater,
            final AdmininstratorNotifier admin, final String sender, final String receiver); @Override void tradeCompleted(final CompletedTrade trade); @Override void unexpectedEvent(final String message); }
MailNotifier implements TraderNotifier { @Override public void unexpectedEvent(final String message) { safeSendMail("UNEXPECTED TRADE EVENT", message); } MailNotifier(final MailSender mailSender, final CompletedTradeMarkDownFormater formater,
            final AdmininstratorNotifier admin, final String sender, final String receiver); @Override void tradeCompleted(final CompletedTrade trade); @Override void unexpectedEvent(final String message);  }