geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r154953 - geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java
Date Wed, 23 Feb 2005 04:37:41 GMT
Author: jboynes
Date: Tue Feb 22 20:37:40 2005
New Revision: 154953

URL: http://svn.apache.org/viewcvs?view=rev&rev=154953
Log:
remove use of deprecated GBeanMBean

Modified:
    geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java

Modified: geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java?view=diff&r1=154952&r2=154953
==============================================================================
--- geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java
(original)
+++ geronimo/trunk/modules/naming/src/test/org/apache/geronimo/naming/java/ContextBuilderTest.java
Tue Feb 22 20:37:40 2005
@@ -28,9 +28,10 @@
 import javax.naming.NamingException;
 
 import junit.framework.TestCase;
+
+import org.apache.geronimo.gbean.GBeanData;
 import org.apache.geronimo.gbean.GBeanInfo;
 import org.apache.geronimo.gbean.GBeanInfoBuilder;
-import org.apache.geronimo.gbean.jmx.GBeanMBean;
 import org.apache.geronimo.kernel.Kernel;
 
 /**
@@ -90,9 +91,9 @@
         try {
             assertEquals(kernel, Kernel.getKernel("test.kernel"));
             ObjectName proxyFactoryName = null;//referenceFactory.createAdminObjectObjectName("testAdminObject");
-            GBeanMBean gbean = new GBeanMBean(getGbeanInfo());
+            GBeanData gbean = new GBeanData(proxyFactoryName, getGbeanInfo());
             gbean.setAttribute("Content", proxy);
-            kernel.loadGBean(proxyFactoryName, gbean);
+            kernel.loadGBean(gbean, Class.forName(gbean.getGBeanInfo().getClassName()).getClassLoader());
             kernel.startGBean(proxyFactoryName);
             Object o = context.lookup("env/resourceenvref");
             assertEquals(proxy, o);



Mime
View raw message