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));
}
Aggregations