Commits

Juan Carlos Picado Herrera committed 51d3dfb

Fixed test cases

  • Participants
  • Parent commits 5e6ef6b

Comments (0)

Files changed (2)

File enme-business/src/test/java/org/encuestame/test/business/email/TestCatEmailLists.java

 
 
     @Test(timeout = 80000)
-    public void testSendEmail(){
+    public void testSendEmail() throws Exception{
         createDefaultEmails(getProperty("mail.test.email2"), this.emailList);
         createDefaultEmails(getProperty("mail.test.email3"), this.emailList);
         final List<Email> emailList = getCatEmailDao().findEmailsByListId(
     }
 
     @Test(timeout = 80000)
-    public void testSendInvitation(){
+    public void testSendInvitation() throws Exception{
           createDefaultEmails(getProperty("mail.test.email2"), this.emailList);
           final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                   this.emailList.getIdList());
     /**
      * Test Send email notification
      * template:notification.vm
+     * @throws Exception
      */
     @Test(timeout = 80000)
-    public void testSendNotificationEmail(){
+    public void testSendNotificationEmail() throws Exception{
           final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                   this.emailList.getIdList());
           for (Email emails : emailList) {
     /**
      * Test Renew password email
      * template: renew-password.vm
+     * @throws Exception
      */
     @Test(timeout = 80000)
-    public void testSendRenewPasswordEmail(){
+    public void testSendRenewPasswordEmail() throws Exception{
           final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                   this.emailList.getIdList());
           for (Email emails : emailList) {
     /**
      * Test Notification status account email.
      * template: notification-account.vm
+     * @throws Exception
      */
     @Test(timeout = 80000)
-    public void testSendNotificationStatusAccountEmail(){
+    public void testSendNotificationStatusAccountEmail() throws Exception{
           final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                   this.emailList.getIdList());
           for (Email emails : emailList) {
     /**
      * Test Confirm your account email.
      * template: confirm-your-account.vm
+     * @throws Exception
      */
     @Test(timeout = 80000)
-    public void testSendConfirmYourAccountEmail(){
+    public void testSendConfirmYourAccountEmail() throws Exception{
           final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                   this.emailList.getIdList());
           for (Email emails : emailList) {
     /**
      * Test password confirmation
      * template: password-confirmation.vm
+     * @throws Exception
      */
     @Test(timeout = 80000)
-    public void testSendPasswordConfirmationEmail(){
+    public void testSendPasswordConfirmationEmail() throws Exception{
         final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                 this.emailList.getIdList());
         for (Email emails : emailList) {

File enme-business/src/test/java/org/encuestame/test/business/service/TestEmailService.java

 import org.encuestame.core.service.imp.MailServiceOperations;
 import org.encuestame.test.business.service.config.AbstractServiceBase;
 import org.encuestame.utils.categories.test.InternetTest;
-import org.encuestame.utils.security.SignUpBean; 
+import org.encuestame.utils.security.SignUpBean;
 import org.junit.Ignore;
 import org.junit.Test;
 import org.junit.experimental.categories.Category;
  * Email Services Test.
  * @author Picado, Juan juanATencuestame.org
  * @since Jun 12, 2010 10:02:41 AM
- */ 
+ */
 @Category(InternetTest.class)
 public class TestEmailService extends AbstractServiceBase {
 
 
     /**
      * Test Send Email.
+     * @throws Exception
      */
     @Test(timeout = 30000)
-    public void testSendEmail(){
+    public void testSendEmail() throws Exception{
         this.serviceMail.sendInvitation(getProperty("mail.test.email"), "12355");
     }
 
     @Test(timeout = 30000)
-    public void testSendConfirmYourAccountEmail(){
+    public void testSendConfirmYourAccountEmail() throws Exception{
         final String inviteCode = UUID.randomUUID().toString();
         final String captcha = "CaPtCHa";
         final String email = "dianmorales@gmail.com";