package com.plannaplan.services; import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest @ContextConfiguration public class EmailServiceTest { @Autowired private EmailService service; @Test @Ignore /** * This test is ignored because we don't have way to check if email has arrived. * Check mailchater to check this manually */ public void shouldSendSimpleEmail() { this.service.sendMail("shouldSendSimpleEmail@EmailService.test", "This is totally simple message"); } }