com.kapil.framework.email.DummyEmailDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iframework Show documentation
Show all versions of iframework Show documentation
This is a set of utilities and classes that I have found useful over the years.
In my career spanning over a decade, I have time and again written the same code or
some part of the code over and over again. I never found the time to collate the details
in a reusable library. This project will be a collection of such files.
The work that I have been doing is more than 5 years old, however the project has been
conceived in 2011.
package com.kapil.framework.email;
/**
* A dummy processor for emails. Useful in scenarios such as unit testing where actually sending emails may not be preferable.
*/
public final class DummyEmailDispatcher implements IEmailDispatcher
{
/**
* Digests an email and does not perform any operation on it.
*/
public boolean dispatchEmail(EmailVO email)
{
return true;
}
}