Package mireka.transmission.dsn

Source Code of mireka.transmission.dsn.NameAddrTest

package mireka.transmission.dsn;

import static org.junit.Assert.*;

import org.apache.james.mime4j.field.address.Mailbox;
import org.junit.Test;

public class NameAddrTest {

    @Test
    public final void testToMime4jMailbox() {
        NameAddr nameAddr = new NameAddr("John", "john@example.com");
        Mailbox mailbox = nameAddr.toMime4jMailbox();
        assertEquals("John", mailbox.getName());
        assertEquals("john", mailbox.getLocalPart());
        assertEquals("example.com", mailbox.getDomain());
    }
}
TOP

Related Classes of mireka.transmission.dsn.NameAddrTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.