Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeType.containsKey()


      CompositeType compositeType = new CompositeType("typeName", "description",
         itemNames, itemDescriptions, itemTypes);
      assertTrue("Composite type should contain key name1", compositeType.containsKey("name1") == true);
      assertTrue("Composite type should contain key name2", compositeType.containsKey("name2") == true);
      assertTrue("Composite type should not contain key nameX", compositeType.containsKey("nameX") == false);
      assertTrue("Composite type should not contain key null", compositeType.containsKey(null) == false);
      assertTrue("Composite type should not contain key <empty>", compositeType.containsKey("") == false);
   }

   public void testGetDescriptionForItemName()
      throws Exception
View Full Code Here


         itemNames, itemDescriptions, itemTypes);
      assertTrue("Composite type should contain key name1", compositeType.containsKey("name1") == true);
      assertTrue("Composite type should contain key name2", compositeType.containsKey("name2") == true);
      assertTrue("Composite type should not contain key nameX", compositeType.containsKey("nameX") == false);
      assertTrue("Composite type should not contain key null", compositeType.containsKey(null) == false);
      assertTrue("Composite type should not contain key <empty>", compositeType.containsKey("") == false);
   }

   public void testGetDescriptionForItemName()
      throws Exception
   {
View Full Code Here

    private void assertTableHasHeadingsNamed(final TabularData resultsTable, String... headingNames)
    {
        CompositeType headingsRow = resultsTable.getTabularType().getRowType();
        for (final String headingName : headingNames)
        {
            assertTrue("Table should have column with heading " + headingName, headingsRow.containsKey(headingName));
        }
    }

    private Map<String, String> createTestNodeResult()
    {
View Full Code Here

    private void assertTableHasHeadingsNamed(final TabularData resultsTable, String... headingNames)
    {
        CompositeType headingsRow = resultsTable.getTabularType().getRowType();
        for (final String headingName : headingNames)
        {
            assertTrue("Table should have column with heading " + headingName, headingsRow.containsKey(headingName));
        }
    }

    private BDBHARemoteReplicationNode<?> mockRemoteNode()
    {
View Full Code Here

    private void assertTableHasHeadingsNamed(final TabularData resultsTable, String... headingNames)
    {
        CompositeType headingsRow = resultsTable.getTabularType().getRowType();
        for (final String headingName : headingNames)
        {
            assertTrue("Table should have column with heading " + headingName, headingsRow.containsKey(headingName));
        }
    }

    private BDBHARemoteReplicationNode<?> mockRemoteNode()
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.