[seam-commits] Seam SVN: r8440 - branches/Seam_2_0_FP/src/test/unit/org/jboss/seam/test/unit.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Jul 8 04:29:26 EDT 2008


Author: manaRH
Date: 2008-07-08 04:29:25 -0400 (Tue, 08 Jul 2008)
New Revision: 8440

Modified:
   branches/Seam_2_0_FP/src/test/unit/org/jboss/seam/test/unit/MailTest.java
Log:
SEAMFP-10

Modified: branches/Seam_2_0_FP/src/test/unit/org/jboss/seam/test/unit/MailTest.java
===================================================================
--- branches/Seam_2_0_FP/src/test/unit/org/jboss/seam/test/unit/MailTest.java	2008-07-08 08:09:08 UTC (rev 8439)
+++ branches/Seam_2_0_FP/src/test/unit/org/jboss/seam/test/unit/MailTest.java	2008-07-08 08:29:25 UTC (rev 8440)
@@ -1,13 +1,10 @@
 package org.jboss.seam.test.unit;
 
-import java.util.ArrayList;
-
 import javax.mail.NoSuchProviderException;
 import javax.mail.Session;
 import javax.naming.NamingException;
 
 import org.jboss.seam.mail.MailSession;
-import org.jboss.seam.mail.MeldwareUser;
 import org.testng.annotations.Test;
 
 import com.sun.mail.smtp.SMTPSSLTransport;
@@ -30,7 +27,7 @@
 
    private static final String PASSWORD = "letmein";
    
-   private static final String EMAIL = "pete.muir at jboss.org";
+   //private static final String EMAIL = "pete.muir at jboss.org";
 
    @Test
    public void testBasicMailSession()
@@ -366,36 +363,5 @@
       
       assert failure;
    }
-   
-   @Test
-   public void testMeldwareUser()
-   {
-      MeldwareUser meldwareUser = new MeldwareUser();
-      meldwareUser.setUsername(USERNAME);
-      meldwareUser.setPassword(PASSWORD);
-      meldwareUser.getAliases().add(EMAIL);
-      
-      assert USERNAME.equals(meldwareUser.getUsername());
-      assert PASSWORD.equals(meldwareUser.getPassword());
-      assert meldwareUser.getAliases() != null;
-      assert meldwareUser.getAliases().contains(EMAIL);
-      assert meldwareUser.getRoles().contains("calendaruser");
-      assert !meldwareUser.getRoles().contains("adminuser");
-      
-      meldwareUser.setAliases(new ArrayList<String>());
-      assert meldwareUser.getAliases().isEmpty();
-   }
-   
-   @Test
-   public void testAdminMeldwareUser()
-   {
-      MeldwareUser meldwareUser = new MeldwareUser();
-      meldwareUser.setAdministrator(true);
-      
-      assert meldwareUser.getRoles().contains("calendaruser");
-      assert meldwareUser.getRoles().contains("adminuser");
-   }
-   
-   // TODO Write tests for Meldware
 
 }




More information about the seam-commits mailing list