Examples of DescriptorSupport


Examples of javax.management.modelmbean.DescriptorSupport

   public void testValidDescriptorFields() throws Exception
   {
      // testcase for bug #794320
      // Test that only name and descriptorType are mandatory
      Descriptor descriptor = new DescriptorSupport(new String[]{"name", "descriptortype", "default"},
                                                    new String[]{"attribute1", "attribute", "default"});
      ModelMBeanAttributeInfo attribute
              = new ModelMBeanAttributeInfo("attribute1", "java.lang.String", "An attribute", true, true, false, descriptor);
      // in case of bug #794320 the descriptor is overrided
      assertEquals(attribute.getDescriptor().getFieldValue("default"), "default");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.