OSDN Git Service

CVS最新版の全ファイルを追加
[spring-ext/ozacc-mail.git] / src / test / com / ozacc / mail / impl / OMLMimeMessageTest.java
1 package com.ozacc.mail.impl;\r
2 \r
3 import java.util.Properties;\r
4 \r
5 import javax.mail.Session;\r
6 \r
7 import junit.framework.TestCase;\r
8 \r
9 /**\r
10  * \r
11  * @author Tomohiro Otsuka\r
12  * @version $Id: OMLMimeMessageTest.java,v 1.1 2004/09/20 21:43:33 otsuka Exp $\r
13  */\r
14 public class OMLMimeMessageTest extends TestCase {\r
15 \r
16         public void testRandom() throws Exception {\r
17                 Properties p = new Properties();\r
18                 OMLMimeMessage msg1 = new OMLMimeMessage(Session.getInstance(p), "JavaMail@ozacc.com");\r
19                 OMLMimeMessage msg2 = new OMLMimeMessage(Session.getInstance(p), ".JavaMail@ozacc.com");\r
20                 \r
21                 String id1 = msg1.generateRandomMessageId();\r
22                 String id2 = msg2.generateRandomMessageId();\r
23 \r
24                 assertNotSame(id1, id2);\r
25 \r
26                 System.out.println(id1);\r
27                 System.out.println(id2);\r
28         }\r
29 }