< prev index next >

test/javax/management/mxbean/StandardMBeanOverrideTest.java

Print this page
rev 11832 : 8078896: Add @modules as needed to the jdk_svc tests
Reviewed-by: alanb, mchung
   1 /*
   2  * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 6283045
  27  * @summary Test the correctness of immutableInfo field in MBeanInfo descriptor
  28  *          when overriding the methods cacheMBeanInfo, getCachedMBeanInfo,
  29  *          getMBeanInfo and getNotificationInfo in StandardMBean and
  30  *          StandardEmitterMBean.
  31  * @author Luis-Miguel Alventosa

  32  * @run clean StandardMBeanOverrideTest
  33  * @run build StandardMBeanOverrideTest
  34  * @run main StandardMBeanOverrideTest
  35  */
  36 
  37 import java.io.*;
  38 import java.lang.management.*;
  39 import javax.management.*;
  40 import javax.management.openmbean.*;
  41 
  42 public class StandardMBeanOverrideTest {
  43 
  44     private static Object testInstances[] = {
  45         new TestClass0(false),
  46         new TestClass1(false),
  47         new TestClass2(false),
  48         new TestClass3(false),
  49         new TestClass4(false),
  50         new TestClass5(false),
  51         new TestClass6(false),


   1 /*
   2  * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  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 6283045
  27  * @summary Test the correctness of immutableInfo field in MBeanInfo descriptor
  28  *          when overriding the methods cacheMBeanInfo, getCachedMBeanInfo,
  29  *          getMBeanInfo and getNotificationInfo in StandardMBean and
  30  *          StandardEmitterMBean.
  31  * @author Luis-Miguel Alventosa
  32  * @modules java.management
  33  * @run clean StandardMBeanOverrideTest
  34  * @run build StandardMBeanOverrideTest
  35  * @run main StandardMBeanOverrideTest
  36  */
  37 
  38 import java.io.*;
  39 import java.lang.management.*;
  40 import javax.management.*;
  41 import javax.management.openmbean.*;
  42 
  43 public class StandardMBeanOverrideTest {
  44 
  45     private static Object testInstances[] = {
  46         new TestClass0(false),
  47         new TestClass1(false),
  48         new TestClass2(false),
  49         new TestClass3(false),
  50         new TestClass4(false),
  51         new TestClass5(false),
  52         new TestClass6(false),


< prev index next >