2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 0N/A * published by the Free Software Foundation. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @summary Test that MBeanInfo classes no longer throw an 0N/A * IllegalArgumentException when attribute names, operation names, and 0N/A * Java type names do not strictly follow the expected Java syntax. 0N/A * @author Daniel Fuchs 0N/A * @run clean MustBeValidCommand 0N/A * @run build MustBeValidCommand 0N/A * @run main MustBeValidCommand 0N/A {
"Attribute with valid identifiers",
0N/A "validType1",
"validNameAtt1" },
0N/A {
"Attribute with invalid type",
0N/A "invalid-type",
"validNameAtt2" },
0N/A {
"Attribute with invalid name",
"valid.type2",
0N/A "invalid-name-att3" },
0N/A {
"Attribute with invalid name and type",
0N/A "invalidtype[]",
"invalid.name.att4" }
0N/A {
"Constructor with valid name",
0N/A "ValidConstructor1" },
0N/A {
"Constructor with invalid name",
0N/A "invalid.Constructor2"},
0N/A {
"Constructor with invalid name",
0N/A "invalid-constructor-3" },
0N/A {
"Constructor with invalid name",
0N/A "invalid constructor" }
0N/A {
"MBean with valid class name",
0N/A "ValidMBeanClass1" },
0N/A {
"MBean with valid class name",
0N/A "valid.mbean.Class2" },
0N/A {
"MBean with invalid class name",
0N/A "invalid.MBeanClass3[]"},
0N/A {
"MBean with invalid class name",
0N/A "invalid-mbean-class-4" },
0N/A {
"MBean with invalid class name",
0N/A "invalid mbean class 5" }
0N/A {
"Notification with valid class name",
0N/A "ValidNotificationClass1" },
0N/A {
"Notification with valid class name",
0N/A "valid.notification.Class2" },
0N/A {
"Notification with invalid class name",
0N/A "invalid.NotificationClass3[]"},
0N/A {
"Notification with invalid class name",
0N/A "invalid-notification-class-4" },
0N/A {
"Notification with invalid class name",
0N/A "invalid notification class 5" }
0N/A {
"Operation with valid identifiers",
0N/A "validType1",
"validNameOp1" },
0N/A {
"Operation with invalid type",
0N/A "invalid-type",
"validNameOp2" },
0N/A {
"Operation with invalid name",
"valid.type2",
0N/A "invalid-name-op3" },
0N/A {
"Operation with invalid name and type",
0N/A "invalidtype[]",
"invalid.name.op4" }
0N/A {
"Parameter with valid identifiers",
0N/A "validType1",
"validNamePar1" },
0N/A {
"Parameter with invalid type",
0N/A "invalid-type",
"validNamePar2" },
0N/A {
"Parameter with invalid name",
"valid.type2",
0N/A "invalid-name-par3" },
0N/A {
"Parameter with invalid name and type",
0N/A "invalidtype[]",
"invalid.name.par4" }
0N/A // Instantiate the MBean server