1   /***
2    Copyright (C) 2005 The Java Community
3   
4    This program is free software; you can redistribute it and/or modify  it under
5    the terms of the GNU General Public License as published by  the Free Software
6    Foundation; either version 2 of the License, or  (at your option) any later
7    version.
8   
9    This program is distributed in the hope that it will be useful,  but WITHOUT
10   ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS
11   FOR A PARTICULAR PURPOSE. See the  GNU General Public License for more details.
12  
13   You should have received a copy of the GNU General Public License  along with
14   this program; if not, write to the Free Software  Foundation, Inc., 59 Temple
15   Place, Suite 330, Boston, MA 02111-1307 USA.
16  
17   */
18  package org.bejug.javacareers.jobs.service;
19  
20  import org.bejug.javacareers.jobs.common.AbstractSpringContextTests;
21  
22  
23  /***
24   * @author Bart Meyers (last modified by $Author: psong09 $)
25   * @version $Revision: 1.5 $ $Date: 2005/08/30 13:07:48 $
26   */
27  public class MailServiceImplTests extends AbstractSpringContextTests {
28      /***
29       * 
30       */
31      //  private static final Logger logger = Logger.getLogger( MailServiceImplTests.class);
32  
33      protected MailService mailService = null;
34  
35      /***
36       * @return the mailservice
37       */
38      public MailService getMailService() {
39          return this.mailService;
40      }
41  
42      /***
43       * @FIXME change this so it works with real mailaddresses
44       */
45      public void testSendMail() {
46          /*  try {
47                getMailService().sendNotificationMessage("bme@jcs.be",
48                                                     "meyersbart@yahoo.com",
49                                                     null,
50                                                     "noreply@javacareers.org",
51                                                     "email from javacareers",
52                                                     "testing the sending of a mail");
53                getMailService().sendNotificationMessage("bme@jcs.be",
54                         "meyersbart@yahoo.com",
55                         null,
56                         "noreply@javacareers.org",
57                         "email from javacareers",
58                         "testing the sending of a mail -- part 2");
59                getMailService().sendNotificationMessage("bme@jcs.be",
60                         null,
61                         null,
62                         null,
63                         null,
64                         "testing the sending of a mail -- part 2");
65                getMailService().sendNotificationMessage("bme@jcs.be",
66                         "meyersbart@yahoo.com",
67                         null,
68                         "noreply@javacareers.org",
69                         "email from javacareers",
70                        null);
71                getMailService().sendNotificationMessage("bme@jcs.be",
72                         "meyersbart@yahoo.com",
73                         null,
74                         null,
75                         null,
76                        null);
77  
78                getMailService().sendNotificationMessage(new String[2],
79                        new String[2],
80                        new String[2],
81                         null,
82                         null,
83                        null);
84            } catch (MailException me) {
85                logger.fatal(me.getMessage());
86            }
87            */
88      }
89  
90  }
91  
92  /***
93   * $Log: MailServiceImplTests.java,v $
94   * Revision 1.5  2005/08/30 13:07:48  psong09
95   * renamed author: psong09
96   *
97   * Revision 1.4  2005/06/29 09:00:27  psong09
98   * comment component updated
99   *
100  * Revision 1.3  2005/06/14 12:05:54  schauwvliege
101  * CheckStyle and fixing tests
102  *
103  * Revision 1.2  2005/06/09 08:19:04  bejug_cc
104  * Fix initial import
105  *
106  * Revision 1.3  2005/05/18 10:24:19  bme
107  * updated for additional mailsupport
108  *
109  * Revision 1.2  2005/05/17 14:22:17  ssc
110  * checkstyle
111  *
112  * Revision 1.1  2005/05/13 14:08:36  bme
113  * first draft
114  *
115  */