geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1095256 - in /geronimo/server/trunk/testsuite/aries-testsuite: ./ mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/ mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/
Date Wed, 20 Apr 2011 02:51:35 GMT
Author: violalu
Date: Wed Apr 20 02:51:35 2011
New Revision: 1095256

URL: http://svn.apache.org/viewvc?rev=1095256&view=rev
Log:
update testsuite

Modified:
    geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/MailTest.java
    geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/MailServlet.java
    geronimo/server/trunk/testsuite/aries-testsuite/pom.xml

Modified: geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/MailTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/MailTest.java?rev=1095256&r1=1095255&r2=1095256&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/MailTest.java
(original)
+++ geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-eba/src/test/java/org/apache/geronimo/testsuite/aries/mail/test/MailTest.java
Wed Apr 20 02:51:35 2011
@@ -45,7 +45,8 @@ public class MailTest extends TestSuppor
         assertTrue("Lookup Mail via ger:service", 
                    reply.contains("Java Mail JNDI Lookup via ger:MailSession Pass"));
         
-        
+        assertTrue("Lookup Mail", 
+                reply.contains("Java Mail JNDI Lookup via jca:/org.apache.geronimo.configs/javamail/JavaMailResource/mail/MailSession
Pass"));
         
     }
   

Modified: geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/MailServlet.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/MailServlet.java?rev=1095256&r1=1095255&r2=1095256&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/MailServlet.java
(original)
+++ geronimo/server/trunk/testsuite/aries-testsuite/mail-osgi-service/mail-wab/src/main/java/org/apache/geronimo/testsuite/aries/mail/web/MailServlet.java
Wed Apr 20 02:51:35 2011
@@ -60,6 +60,13 @@ public class MailServlet extends HttpSer
             } else {
                 pw.println("Java Mail JNDI Lookup via ger:MailSession Fail"); 
             }
+            
+            mailSession = (Session) ic.lookup("jca:/org.apache.geronimo.configs/javamail/JavaMailResource/mail/MailSession");
+            if (mailSession != null){               
+                pw.println("Java Mail JNDI Lookup via jca:/org.apache.geronimo.configs/javamail/JavaMailResource/mail/MailSession
Pass" ); 
+            } else {
+                pw.println("Java Mail JNDI Lookup via jca:/org.apache.geronimo.configs/javamail/JavaMailResource/mail/MailSession
Fail"); 
+            }
            
         } catch (IOException e) {
             // TODO Auto-generated catch block

Modified: geronimo/server/trunk/testsuite/aries-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/aries-testsuite/pom.xml?rev=1095256&r1=1095255&r2=1095256&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/aries-testsuite/pom.xml (original)
+++ geronimo/server/trunk/testsuite/aries-testsuite/pom.xml Wed Apr 20 02:51:35 2011
@@ -40,9 +40,8 @@
         <module>require-bundle-test</module>    
     <module>ds-jndi</module>
     <module>ejb-osgi-service</module>
-    <module>osgi-service-custom</module>    
-    <!--mail/MailSession is not bound to MailGBean, so comment it
-    <module>mail-osgi-service</module>-->
+    <module>osgi-service-custom</module>
+    <module>mail-osgi-service</module>
   </modules>
 
     <build>



Mime
View raw message