Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.nordnet.backoffice.test.mock;
- import java.util.Map;
- import nordnet.architecture.exceptions.explicit.DataSourceException;
- import nordnet.architecture.exceptions.explicit.NotFoundException;
- import nordnet.architecture.exceptions.explicit.NotRespectedRulesException;
- import org.apache.commons.logging.LogFactory;
- import com.nordnet.backoffice.helpers.ejb.MailManagementEJBHelper;
- import com.nordnet.backoffice.mails.ejb.types.vo.UserInfos;
- /**
- * Mail Management EJB Helper.
- *
- * @author sdospinescu
- *
- */
- public class MailManagementEJBHelperMock extends MailManagementEJBHelper {
- /**
- * Default logger.
- */
- private static final org.apache.commons.logging.Log LOGGER = LogFactory.getLog(MailManagementEJBHelper.class);
- /**
- * Send an email using mail management EJB.
- *
- * @param templateName
- * the name of the template to use.
- * @param to
- * the recipient of the email.
- * @param values
- * the map containing values to integrate on the mail to send.
- * @param userInfos
- * the user infos.
- * @throws DataSourceException
- * thrown if an exception occured when trying to send the email.
- * @throws NotRespectedRulesException
- * thrown if entering data are invalid.
- * @throws NotFoundException
- * thrown if no template with the <code>templateName</code> name is found.
- */
- @Override
- public void sendEmail(String templateName, String to, Map<String, String> values, UserInfos userInfos)
- throws DataSourceException, NotFoundException, NotRespectedRulesException {
- LOGGER.info("MOCK");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement