< prev index next >

test/javax/management/modelmbean/RequiredModelMBeanSetAttributeTest.java

Print this page
rev 16783 : 8176176: fix @modules in jdk_svc tests
Reviewed-by: duke


  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4997033
  27  * @summary Test the following in RequiredModelMBean.setAttribute():
  28  * MBeanException wrapping a ServiceNotFoundException is thrown is setAttribute
  29  * called but no setMethod field has been provided.
  30  * @author Jean-Francois Denise
  31  * @modules java.management
  32  * @run clean RequiredModelMBeanSetAttributeTest
  33  * @run build RequiredModelMBeanSetAttributeTest
  34  * @run main RequiredModelMBeanSetAttributeTest
  35  */
  36 
  37 import javax.management.Descriptor;
  38 import javax.management.MBeanServer;
  39 import javax.management.MBeanServerFactory;
  40 import javax.management.ObjectName;
  41 import javax.management.Attribute;
  42 import javax.management.MBeanException;
  43 import javax.management.ServiceNotFoundException;
  44 import javax.management.modelmbean.DescriptorSupport;
  45 import javax.management.modelmbean.ModelMBean;
  46 import javax.management.modelmbean.ModelMBeanAttributeInfo;
  47 import javax.management.modelmbean.ModelMBeanInfo;
  48 import javax.management.modelmbean.ModelMBeanInfoSupport;
  49 import javax.management.modelmbean.ModelMBeanOperationInfo;
  50 import javax.management.modelmbean.RequiredModelMBean;
  51 




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 4997033
  27  * @summary Test the following in RequiredModelMBean.setAttribute():
  28  * MBeanException wrapping a ServiceNotFoundException is thrown is setAttribute
  29  * called but no setMethod field has been provided.
  30  * @author Jean-Francois Denise
  31  *
  32  * @run clean RequiredModelMBeanSetAttributeTest
  33  * @run build RequiredModelMBeanSetAttributeTest
  34  * @run main RequiredModelMBeanSetAttributeTest
  35  */
  36 
  37 import javax.management.Descriptor;
  38 import javax.management.MBeanServer;
  39 import javax.management.MBeanServerFactory;
  40 import javax.management.ObjectName;
  41 import javax.management.Attribute;
  42 import javax.management.MBeanException;
  43 import javax.management.ServiceNotFoundException;
  44 import javax.management.modelmbean.DescriptorSupport;
  45 import javax.management.modelmbean.ModelMBean;
  46 import javax.management.modelmbean.ModelMBeanAttributeInfo;
  47 import javax.management.modelmbean.ModelMBeanInfo;
  48 import javax.management.modelmbean.ModelMBeanInfoSupport;
  49 import javax.management.modelmbean.ModelMBeanOperationInfo;
  50 import javax.management.modelmbean.RequiredModelMBean;
  51 


< prev index next >