@@ -0,0 +1,888 @@
+package com.lance.email;%0A%0Aimport org.apache.logging.log4j.LogManager;%0Aimport org.apache.logging.log4j.Logger;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.boot.test.SpringApplicationConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@SpringApplicationConfiguration(classes=SimpleApplication.class)%0Apublic class EmailSenderTest %7B%0A%09private Logger logger = LogManager.getLogger(getClass());%0A%09@Autowired%0A%09private EmailSender emailSender;%0A%0A%09@Test%0A%09public void sender() %7B%0A%09%09String to = %2281222000@qq.com%22;%0A%09%09String subject = %22Test subject%22;%0A%09%09String content = %22Hello Spring boot Email.%22;%0A%09%09%0A%09%09boolean result = emailSender.sender(to, subject, content);%0A%09%09logger.info(%22-------------======---------------%22+result);%0A%09%7D%0A%7D%0A

add test