Package org.jboss.metatype.api.values

Examples of org.jboss.metatype.api.values.CompositeValueSupport.containsValue()


      SimpleValue nullInteger = initIntegerNull();
      CompositeMetaType compositeMetaType = initCompositeMetaType();
      Map<String, MetaValue> map = initMapValues();
      CompositeValue v = new CompositeValueSupport(compositeMetaType, map);

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));
View Full Code Here


      CompositeMetaType compositeMetaType = initCompositeMetaType();
      Map<String, MetaValue> map = initMapValues();
      CompositeValue v = new CompositeValueSupport(compositeMetaType, map);

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));
View Full Code Here

      Map<String, MetaValue> map = initMapValues();
      CompositeValue v = new CompositeValueSupport(compositeMetaType, map);

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));

      map.clear();
View Full Code Here

      CompositeValue v = new CompositeValueSupport(compositeMetaType, map);

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));

      map.clear();
      map.put("name1", value1);
View Full Code Here

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));

      map.clear();
      map.put("name1", value1);
      map.put("name2", null);
View Full Code Here

      assertTrue("data should contain value value1", v.containsValue(value1));
      assertTrue("data should contain value 2", v.containsValue(integer2));
      assertFalse("data should not contain value name1", v.containsValue(name1));
      assertFalse("data should not contain key null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));
      assertFalse("data should not contain key <empty>", v.containsValue(emptyString));

      map.clear();
      map.put("name1", value1);
      map.put("name2", null);
      v = new CompositeValueSupport(compositeMetaType, map);
View Full Code Here

      map.clear();
      map.put("name1", value1);
      map.put("name2", null);
      v = new CompositeValueSupport(compositeMetaType, map);
      assertTrue("data should contain value null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));

      map.clear();
      map.put("name1", value1);
      map.put("name2", nullInteger);
View Full Code Here

      map.clear();
      map.put("name1", value1);
      map.put("name2", null);
      v = new CompositeValueSupport(compositeMetaType, map);
      assertTrue("data should contain value null", v.containsValue(null));
      assertFalse("data should not contain key null", v.containsValue(nullString));

      map.clear();
      map.put("name1", value1);
      map.put("name2", nullInteger);
      v = new CompositeValueSupport(compositeMetaType, map);
View Full Code Here

      map.clear();
      map.put("name1", value1);
      map.put("name2", nullInteger);
      v = new CompositeValueSupport(compositeMetaType, map);
      assertTrue("data should contain value null", v.containsValue(nullInteger));
      assertFalse("data should not contain key null", v.containsValue(null));
   }

   /**
    * Test the values for a composite value
View Full Code Here

      map.clear();
      map.put("name1", value1);
      map.put("name2", nullInteger);
      v = new CompositeValueSupport(compositeMetaType, map);
      assertTrue("data should contain value null", v.containsValue(nullInteger));
      assertFalse("data should not contain key null", v.containsValue(null));
   }

   /**
    * Test the values for a composite value
    *
 
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.