Search in sources :

Example 1 with MailMessage

use of com.enonic.xp.mail.MailMessage in project xp by enonic.

the class MailServiceImplTest method sessionNotActivatedTest.

@Test
public void sessionNotActivatedTest() throws Exception {
    MailServiceImpl mailService = new MailServiceImpl();
    MailMessage mockMessage = this::createMockMessage;
    assertThrows(MailException.class, () -> mailService.send(mockMessage));
}
Also used : MailMessage(com.enonic.xp.mail.MailMessage) Test(org.junit.jupiter.api.Test)

Aggregations

MailMessage (com.enonic.xp.mail.MailMessage)1 Test (org.junit.jupiter.api.Test)1