Package org.apache.mailet.base.test

Examples of org.apache.mailet.base.test.FakeMail


        };
        return dns;
    }

    private void setupMockedMail(String remoteAddr) throws ParseException {
        mockedMail = new FakeMail();
        mockedMail.setRemoteAddr(remoteAddr);
        mockedMail.setRecipients(Arrays.asList(new MailAddress("test@email")));

    }
View Full Code Here


    /**
     * @return
     * @throws MessagingException
     */
    private Mail createMail(String[] recipients) throws MessagingException {
        Mail mail = new FakeMail();
        ArrayList<MailAddress> a = new ArrayList<MailAddress>(recipients.length);
        for (String recipient : recipients) {
            a.add(new MailAddress(recipient));
        }
        mail.setRecipients(a);
        mail.setMessage(new FakeMimeMessage());
        return mail;
    }
View Full Code Here

TOP

Related Classes of org.apache.mailet.base.test.FakeMail

Copyright © 2018 www.massapicom. 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.