Search in sources :

Example 1 with EmailServiceImpl

use of de.spring.emails.services.impl.EmailServiceImpl in project JavaForFun by gumartinm.

the class EmailServiceTest method setUp.

@Before
public void setUp() throws Exception {
    JavaMailSenderImpl senderImpl = new JavaMailSenderImpl();
    senderImpl.setPort(3025);
    senderImpl.setHost("localhost");
    emailService = new EmailServiceImpl(senderImpl);
    testSmtp = new GreenMail(ServerSetupTest.SMTP);
    testSmtp.start();
}
Also used : JavaMailSenderImpl(org.springframework.mail.javamail.JavaMailSenderImpl) EmailServiceImpl(de.spring.emails.services.impl.EmailServiceImpl) GreenMail(com.icegreen.greenmail.util.GreenMail) Before(org.junit.Before)

Aggregations

GreenMail (com.icegreen.greenmail.util.GreenMail)1 EmailServiceImpl (de.spring.emails.services.impl.EmailServiceImpl)1 Before (org.junit.Before)1 JavaMailSenderImpl (org.springframework.mail.javamail.JavaMailSenderImpl)1