1   package com.ozacc.mail.impl;
2   
3   import junit.framework.TestCase;
4   
5   import org.apache.log4j.BasicConfigurator;
6   
7   import com.ozacc.mail.Mail;
8   import com.ozacc.mail.MailBuilder;
9   
10  /***
11   * SendMailImpl¥¯¥é¥¹¤Î¥Æ¥¹¥È¥±¡¼¥¹¡£¼ÂºÝ¤ËÁ÷¿®¤·¡¢¥á¡¼¥é¡¼¤Ç¼õ¿®¤·¤Æ³Îǧ¤¹¤?¥Æ¥¹¥È¤Ç¤¹¡£
12   * 
13   * @author Tomohiro Otsuka
14   * @version $Id: SendMailImplRealTest.java,v 1.2 2004/09/14 00:06:01 otsuka Exp $
15   */
16  public class SendMailImplRealTest extends TestCase {
17  
18  	private MailBuilder builder;
19  
20  	private SendMailImpl sendMail;
21  
22  	/*
23  	 * @see TestCase#setUp()
24  	 */
25  	protected void setUp() throws Exception {
26  		super.setUp();
27  
28  		BasicConfigurator.configure();
29  
30  		String host = "192.168.0.10";
31  		sendMail = new SendMailImpl(host);
32  
33  		builder = new XMLMailBuilderImpl();
34  	}
35  
36  	/***
37  	 * @see junit.framework.TestCase#tearDown()
38  	 */
39  	protected void tearDown() throws Exception {
40  		BasicConfigurator.resetConfiguration();
41  	}
42  
43  	/***
44  	 * <code>email</code>¥ú½¼¥«¥?ÊÑ¿ô¤ò¼ÂºÝ¤Ë¼õ¿®²Äǽ¤Ê¥¢¥É¥?¥¹¤ËÊѤ¨¤Æ¥Æ¥¹¥È¤¹¤?¤³¤È¡£
45  	 * 
46  	 * @throws Exception
47  	 */
48  /*	public void testSendMail() throws Exception {
49  		String email = "to@example.com";
50  
51  		String classPath = "/com/ozacc/mail/test-mail4.xml";
52  		Mail mail = builder.buildMail(classPath);
53  		mail.addTo(email);
54  
55  		sendMail.send(mail);
56  	}*/
57  
58  	/***
59  	 * ¥Æ¥¹¥È¥±¡¼¥¹¤¬¤Ò¤È¤Ä¤â¤Ê¤¤¤È¥¨¥é¡¼¤Ë¤Ê¤?¤Î¤Ç¡¢¥À¥ß¡¼¡£
60  	 */
61  	public void testSendMailSuccess() {
62  		Mail mail;
63  		assertTrue(true);
64  	}
65  
66  }