Package org.apache.james.smtpserver

Examples of org.apache.james.smtpserver.SetMimeHeaderHandler.onMessage()


        SetMimeHeaderHandler header = new SetMimeHeaderHandler();

        header.setHeaderName(HEADER_NAME);
        header.setHeaderValue(HEADER_VALUE);
        header.onMessage(mockedSMTPSession, mockedMail);

        assertEquals(HEADER_VALUE, mockedMail.getMessage()
                .getHeader(HEADER_NAME)[0]);
    }
View Full Code Here


        SetMimeHeaderHandler header = new SetMimeHeaderHandler();

        header.setHeaderName(HEADER_NAME);
        header.setHeaderValue(HEADER_VALUE);
        header.onMessage(mockedSMTPSession, mockedMail);

        assertEquals(HEADER_VALUE, mockedMail.getMessage()
                .getHeader(HEADER_NAME)[0]);
    }
View Full Code Here

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.