@Test(expected = IllegalArgumentException.class) public final void shouldThrowExceptionIfSubjectIsBlank() throws Exception { mailServiceImpl.sendEmail(DEFAULT_RECIPIENT, " ", DEFAULT_BODY); }
@Override public void sendEmail(final String recipient, final String subject, final String body) { sendHtmlTextEmail(getDefaultSender(), recipient, subject, body); }
MailServiceImpl implements MailService { @Override public void sendEmail(final String recipient, final String subject, final String body) { sendHtmlTextEmail(getDefaultSender(), recipient, subject, body); } }
MailServiceImpl implements MailService { @Override public void sendEmail(final String recipient, final String subject, final String body) { sendHtmlTextEmail(getDefaultSender(), recipient, subject, body); }  }
MailServiceImpl implements MailService { @Override public void sendEmail(final String recipient, final String subject, final String body) { sendHtmlTextEmail(getDefaultSender(), recipient, subject, body); }  @Override void sendEmail(final String recipient, final String subject, final String body); static boolean isValidEmail(final String email); }
MailServiceImpl implements MailService { @Override public void sendEmail(final String recipient, final String subject, final String body) { sendHtmlTextEmail(getDefaultSender(), recipient, subject, body); }  @Override void sendEmail(final String recipient, final String subject, final String body); static boolean isValidEmail(final String email);  }