package jp.agentec.sinaburocast.common.util; import java.io.UnsupportedEncodingException; import javax.mail.MessagingException; import junit.framework.TestCase; import junit.framework.TestSuite; public class MailUtilTest extends TestCase { public MailUtilTest(String string) { super(string); } public static TestSuite suite() { TestSuite suite = new TestSuite("MailUtilTest"); suite.addTest(new MailUtilTest("testSend")); return suite; } /** * @throws java.lang.Exception */ @Override public void setUp() throws Exception { } /** * @throws java.lang.Exception */ @Override public void tearDown() throws Exception { } public void testSend() throws UnsupportedEncodingException, MessagingException { //MailUtil.send("choi-c@agentec.jp", "てすと2"); MailUtil.send("tsukadanot@agentec.jp", "タイトル","てすと2"); //MailUtil.send("192.168.11.185", "from@agentec.jp", "hoge", "tsukada@agentec.jjp", "String subject", "String body", null,null); } }