Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management/remote
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8068/test/test/javax/management/remote
Modified Files:
JMXConnectorFactoryTest.java
Log Message:
Added a test
Index: JMXConnectorFactoryTest.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/test/test/javax/management/remote/JMXConnectorFactoryTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** JMXConnectorFactoryTest.java 7 Aug 2003 10:18:42 -0000 1.4
--- JMXConnectorFactoryTest.java 27 Feb 2004 09:52:40 -0000 1.5
***************
*** 17,21 ****
import javax.management.remote.JMXServiceURL;
! import junit.framework.TestCase;
/**
--- 17,21 ----
import javax.management.remote.JMXServiceURL;
! import test.MX4JTestCase;
/**
***************
*** 23,27 ****
* @version $Revision$
*/
! public class JMXConnectorFactoryTest extends TestCase
{
public JMXConnectorFactoryTest(String s)
--- 23,27 ----
* @version $Revision$
*/
! public class JMXConnectorFactoryTest extends MX4JTestCase
{
public JMXConnectorFactoryTest(String s)
***************
*** 110,113 ****
--- 110,122 ----
}
+ public void testLoadProviderWithProvidedClassLoader() throws Exception
+ {
+ HashMap env = new HashMap();
+ JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://host");
+
+ env.put(JMXConnectorFactory.PROTOCOL_PROVIDER_CLASS_LOADER, getClass().getClassLoader());
+ JMXConnectorFactory.connect(url, env);
+ }
+
public void testRMIProvider() throws Exception
{
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.