Package javax.management.openmbean

Examples of javax.management.openmbean.CompositeDataSupport.containsValue()


      CompositeDataSupport data = new CompositeDataSupport(compositeType, map);
      assertTrue("data should contain value value1", data.containsValue("value1") == true);
      assertTrue("data should contain value 2", data.containsValue(new Integer(2)) == true);
      assertTrue("data should not contain value name1", data.containsValue("name1") == false);
      assertTrue("data should not contain key null", data.containsValue(null) == false);
      assertTrue("data should not contain key <empty>", data.containsValue("") == false);

      map.clear();
      map.put("name1", "value1");
      map.put("name2", null);
      data = new CompositeDataSupport(compositeType, map);
View Full Code Here


      map.clear();
      map.put("name1", "value1");
      map.put("name2", null);
      data = new CompositeDataSupport(compositeType, map);
      assertTrue("data should contain value null", data.containsValue(null) == true);
   }

   public void testValues()
      throws Exception
   {
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.