[jboss-cvs] JBossAS SVN: r60180 - in branches/Branch_4_2/testsuite: src/main/org/jboss/test/naming/test and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 1 23:41:50 EST 2007


Author: scott.stark at jboss.org
Date: 2007-02-01 23:41:50 -0500 (Thu, 01 Feb 2007)
New Revision: 60180

Modified:
   branches/Branch_4_2/testsuite/imports/sections/naming.xml
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java
Log:
JBAS-4048, look to all superclass interfaces when creating the proxy

Modified: branches/Branch_4_2/testsuite/imports/sections/naming.xml
===================================================================
--- branches/Branch_4_2/testsuite/imports/sections/naming.xml	2007-02-02 04:38:16 UTC (rev 60179)
+++ branches/Branch_4_2/testsuite/imports/sections/naming.xml	2007-02-02 04:41:50 UTC (rev 60180)
@@ -103,5 +103,16 @@
             <include name="org/jboss/test/naming/interceptors/*"/>
          </fileset>
       </jar>
+      
+      <!-- ExternalContext sar -->
+      <jar destfile="${build.lib}/extcontext.sar">
+         <zipfileset dir="${build.resources}/naming/services"
+            fullpath="META-INF/jboss-service.xml">
+            <include name="externalcontext-service.xml"/>
+         </zipfileset>
+         <fileset dir="${build.classes}">
+            <include name="org/jboss/test/naming/factory/*"/>
+         </fileset>
+      </jar>     
    </target>
 </project>

Modified: branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java	2007-02-02 04:38:16 UTC (rev 60179)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/test/ExternalContextUnitTestCase.java	2007-02-02 04:41:50 UTC (rev 60180)
@@ -37,27 +37,26 @@
  * A test of the ExternalContext naming mbean. To test there needs to be one or
  * more ExternalContex mbeans setup. An example filesystem context setup would
  * be: 
-  <mbean code="org.jboss.naming.ExternalContext" name="jboss:service=ExternalContext,jndiName=external/fs/tmp">
-    <attribute name="JndiName">external/fs/Scott</attribute>
-    <attribute name="Properties">tmp.fs</attribute>
-    <attribute name="RemoteAccess">true</attribute>
-  </mbean>
+<server>
+   <mbean code="org.jboss.naming.ExternalContext" name="jboss.test:service=ExternalContext,jndiName=external/SubMockNamingContext">
+      <attribute name="JndiName">external/SubMockNamingContext</attribute>
+      <attribute name="InitialContext">org.jboss.test.naming.factory.MockInitialContext</attribute>
+      <attribute name="Properties">
+         # Dummy JNDI properties
+         java.naming.factory.initial=org.jboss.test.naming.factory.MockInitialContextFactory
+         java.naming.provider.url=http://www.jboss.org
+      </attribute>
+      <attribute name="RemoteAccess">true</attribute>
+   </mbean>
+</server>
 
-where tmp.fs is a Properties file containing:
-# JNDI properties for /Scott filesystem directory
-java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
-java.naming.provider.url=file:/tmp
-
- *
- * @author    Scott_Stark at displayscape.com
- * @version   $Revision$
+ @author Scott.Stark at jboss.org
+ @version $Revision$
  */
 public class ExternalContextUnitTestCase extends JBossTestCase
 {
    private ObjectName[] contextNames;
 
-//    private RemoteMBeanServer server;
-
    /**
     * Constructor for the ExternalContextUnitTestCase object
     *




More information about the jboss-cvs-commits mailing list