Package org.encuestame.utils.mail

Examples of org.encuestame.utils.mail.NotificationBean


    /**
     * Test {@link NotificationBean}.
     */
    @Test
    public void testNotificationBean(){
        final NotificationBean ib = new NotificationBean();
        ib.setCode("code");
        ib.setEmail("juan@encuestame.org");
        ib.setMessage("message");
        ib.setUrlUnsuscribe("unUrl");
        assertNotNull(ib.getCode());
        assertNotNull(ib.getEmail());
        assertNotNull(ib.getMessage());
        assertNotNull(ib.getUrlUnsuscribe());
    }
View Full Code Here


    public void testSendNotificationEmail() throws Exception{
          final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                  this.emailList.getIdList());
          for (Email emails : emailList) {
                assertNotNull(emails.getEmail());
                final NotificationBean notification = new NotificationBean();
                notification.setCode("5678");
                notification.setEmail(emails.getEmail());
                notification.setMessage("My personal message");
                notification.setUrlUnsuscribe(URLPOLL);
                mailService.sendEmailNotification(notification);
              }
      }
View Full Code Here

TOP

Related Classes of org.encuestame.utils.mail.NotificationBean

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.