Package es.devel.mail

Examples of es.devel.mail.MailService


    }

    @Test(expected = MailServiceException.class)
    public void testSendMailWithNoRecipients() throws Exception {
        //Arrange
        MailService mailService = new MailServiceImpl(this.sender);

        //Act
        mailService.sendMail(null, "sender@domain.com", "Sender name", "The subject", "The body");

        //Assert
        fail("Exception should be thrown");
    }
View Full Code Here


    }

    @Test(expected = MailServiceException.class)
    public void testSendMailWithNoSenderEmail() throws Exception {
        //Arrange
        MailService mailService = new MailServiceImpl(this.sender);

        //Act
        mailService.sendMail(new String[2], "", "Sender name", "The subject", "The body");

        //Assert
        fail("Exception should be thrown");
    }
View Full Code Here

    }

    @Test(expected = MailServiceException.class)
    public void testSendMailWithNoSenderName() throws Exception {
        //Arrange
        MailService mailService = new MailServiceImpl(this.sender);

        //Act
        mailService.sendMail(new String[2], "sender@domain.com", null, "The subject", "The body");

        //Assert
        fail("Exception should be thrown");
    }
View Full Code Here

TOP

Related Classes of es.devel.mail.MailService

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.