< prev index next >

test/javax/management/mxbean/StandardMBeanOverrideTest.java

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


  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),




  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  *
  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 >