< prev index next >

test/javax/management/openmbean/IsValueTest.java

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


   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 5072004
  27  * @summary Test new rules for isValue
  28  * @author Eamonn McManus
  29  * @modules java.management
  30  */
  31 
  32 import javax.management.openmbean.*;
  33 
  34 public class IsValueTest {
  35     private static String failed;
  36 
  37     public static void main(String[] args) throws Exception {
  38         CompositeType ctOld =
  39             new CompositeType("same.type.name", "old",
  40                 new String[] {"int", "string"},
  41                 new String[] {"an int", "a string"},
  42                 new OpenType[] {SimpleType.INTEGER, SimpleType.STRING});
  43         CompositeType ctNew =
  44             new CompositeType("same.type.name", "new",
  45                 new String[] {"int", "int2", "string"},
  46                 new String[] {"an int", "another int", "a string"},
  47                 new OpenType[] {SimpleType.INTEGER, SimpleType.INTEGER, SimpleType.STRING});
  48         CompositeData cdOld =
  49             new CompositeDataSupport(ctOld,




   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 5072004
  27  * @summary Test new rules for isValue
  28  * @author Eamonn McManus

  29  */
  30 
  31 import javax.management.openmbean.*;
  32 
  33 public class IsValueTest {
  34     private static String failed;
  35 
  36     public static void main(String[] args) throws Exception {
  37         CompositeType ctOld =
  38             new CompositeType("same.type.name", "old",
  39                 new String[] {"int", "string"},
  40                 new String[] {"an int", "a string"},
  41                 new OpenType[] {SimpleType.INTEGER, SimpleType.STRING});
  42         CompositeType ctNew =
  43             new CompositeType("same.type.name", "new",
  44                 new String[] {"int", "int2", "string"},
  45                 new String[] {"an int", "another int", "a string"},
  46                 new OpenType[] {SimpleType.INTEGER, SimpleType.INTEGER, SimpleType.STRING});
  47         CompositeData cdOld =
  48             new CompositeDataSupport(ctOld,


< prev index next >