Examples of containsValue()


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

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

   {
      TableMetaType tableType = initTableType();

      TableValueSupport data = new TableValueSupport(tableType);

      assertFalse("Didn't expect containsValue null", data.containsValue(null));

      CompositeMetaType rowType2 = initCompositeMetaType2();

      CompositeValue compData2 = initCompositeValue(rowType2);
View Full Code Here

Examples of org.jclouds.vcloud.director.v1_5.domain.Metadata.containsValue()

    Metadata metadata = context.getApi().getMetadataApi(vmUrn).get();

    checkMetadata(metadata);
   
    // Check requirements for this test
    assertTrue(metadata.containsValue(metadataValue), String.format(CORRECT_VALUE_OBJECT_FMT, "Value", "MetadataValue", metadata.get(key), metadataValue));
  }

   @Test(description = "GET /vApp/{id}/metadata/{key}", dependsOnMethods = { "testGetMetadata" })
   public void testGetOrgMetadataValue() {
      key = name("key-");
View Full Code Here

Examples of org.jgroups.util.RspList.containsValue()

        RspList tmp=new RspList(c);
        Assert.assertEquals(c.size(), tmp.size());
        assert tmp.containsKey(a1);
        assert tmp.containsKey(a2);
        assert tmp.containsKey(a3);
        assert tmp.containsValue(rsp1);
        assert tmp.containsValue(rsp2);
        assert tmp.containsValue(rsp3);
    }

View Full Code Here

Examples of org.openntf.domino.Item.containsValue()

    Item result = null;
    if (unique && hasItem(name)) {
      // TODO RPr This function is not yet 100% mime compatible
      // Once mime compatible, remove the reference in org.openntf.domino.ext.Document Javadoc
      result = getFirstItem(name);
      if (result.containsValue(value)) { // this does not work when it is not dominoFriendly
        return result;
      }
    }
    try {
      if (!hasItem(name)) {
View Full Code Here

Examples of org.openqreg.util.FetchData.containsValue()

  @Override
  public String createJournalHTML(ElementParameter elemParam) {
    StringBuffer out = new StringBuffer();
    // if this variable exists in fetch and it is not empty print the value
    FetchData fetch = elemParam.getFetch();
    if (fetch.containsValue(this.getName())
        && !"".equals(fetch.getValueAsString(this.getName()))) {
      out.append("<span class=\"").append(getStylesheet()).append("\">");
      out.append(fetch.getValueAsString(this.getName()));
      out.append("</span>");
    }
View Full Code Here

Examples of org.pdfbox.cos.COSDictionary.containsValue()

           
            if( key == null )
            {
                int counter = 0;
                String csName = "CS";
                while( colorSpaces.containsValue( csName + counter ) )
                {
                    counter++;
                }
                key = COSName.getPDFName( csName + counter );
                colorSpaces.setItem( key, colorSpace );
View Full Code Here

Examples of org.rhq.core.domain.configuration.PropertyMap.containsValue()

        index = 1;
        for (Map<String, Object> map : value) {
            Assert.assertTrue(map.containsKey("test" + index));
            index++;
            Assert.assertTrue(map.containsValue("test" + index));
            index++;

            Assert.assertEquals(map.size(), 1);
        }
    }
View Full Code Here

Examples of org.springframework.osgi.util.internal.MapBasedDictionary.containsValue()

    Dictionary dict = new Properties();
    dict.put("joe", "satriani");

    MapBasedDictionary wrapper = new MapBasedDictionary();
    wrapper.putAll(dict);
    assertTrue(wrapper.containsValue("satriani"));
  }

  public void testHashCode() throws Exception {
    MapBasedDictionary wrapper1 = new MapBasedDictionary();
    MapBasedDictionary wrapper2 = new MapBasedDictionary();
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.