All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.kapil.framework.email.DummyEmailDispatcher Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.2.1
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy