Skip to content

Instantly share code, notes, and snippets.

@stephan-mueller
Created September 28, 2015 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephan-mueller/f3bb3dc93891b7ade64a to your computer and use it in GitHub Desktop.
Save stephan-mueller/f3bb3dc93891b7ade64a to your computer and use it in GitHub Desktop.
Alternative implementation for the service {@link MailService}
@Alternative
public class AlternativeMailService extends MailService {
public static CountDownLatch latch;
@Override
public void sendMail(final String subject, final String body, final String... recipients) {
latch.countDown();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment