Package org.jboss.test.xml.mbeanserver

Examples of org.jboss.test.xml.mbeanserver.MBeanData


      InputStream is2 = getResource("xml/mbeanserver/testObjFactory.xml");
      Services services = (Services)unmarshaller.unmarshal(is2, schemaBinding);
      List mbeans = services.getMBeans();
      assertEquals("There is 1 mbean", 1, mbeans.size());

      MBeanData mbean = (MBeanData) mbeans.get(0);
      assertTrue("ClassName == org.jboss.security.auth.login.DynamicLoginConfig",
         mbean.getCode().equals("org.jboss.security.auth.login.DynamicLoginConfig"));
      assertTrue("Name == jboss.security.tests:service=DynamicLoginConfig",
         mbean.getName().equals("jboss.security.tests:service=DynamicLoginConfig"));
      Map attributes = mbean.getAttributeMap();
      assertTrue("There are 2 attributes",
         attributes.size() == 2);
      MBeanAttribute attr = (MBeanAttribute) attributes.get("PolicyConfig");
      Object value = attr.getValue();
      assertTrue("Value isA PolicyConfig",
View Full Code Here

TOP

Related Classes of org.jboss.test.xml.mbeanserver.MBeanData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.