OMLMimeMessageTest xref

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