From: David J. <d_j...@us...> - 2002-05-05 05:13:26
|
User: d_jencks Date: 02/05/04 22:13:26 Added: src/main/org/jboss/test/jmx/test DeployXMBeanUnitTestCase.java Log: Added ability to deploy xmbeans from a *-service.xml file. Use the code attribute to specify the class of the object you want managed, and include an xmbean-dd=[quoted url] attribute to indicate where the xml dd comes from. An example is provided in the testsuite under jmx/xmbean. This deploys but has many other problems. Revision Changes Path 1.1 jbosstest/src/main/org/jboss/test/jmx/test/DeployXMBeanUnitTestCase.java Index: DeployXMBeanUnitTestCase.java =================================================================== /* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. * */ package org.jboss.test.jmx.test; import org.jboss.test.JBossTestCase; import javax.management.ObjectName; /** * DeployXMBeanUnitTestCase.java * * * Created: Sun May 5 00:58:42 2002 * * @author <a href="mailto:d_j...@us...">David Jencks</a> * @version */ public class DeployXMBeanUnitTestCase extends JBossTestCase { private final static String USER_NAME = "jboss.test:service=xmbean-user"; private final static String PACKAGE_NAME = "user-xmbean.sar"; public DeployXMBeanUnitTestCase(String name) { super(name); } public void testDeployUserXMBean() throws Exception { ObjectName userName = new ObjectName(USER_NAME); deploy(PACKAGE_NAME); assertTrue("user xmbean is not registered!", getServer().isRegistered(userName)); undeploy(PACKAGE_NAME); } }// DeployXMBeanUnitTestCase |