Examples of MapEntry


Examples of org.fest.assertions.data.MapEntry

         .withStatus("201").build();

      final List<StubHttpLifecycle> loadedHttpCycles = unmarshall(yaml);
      final StubHttpLifecycle actualHttpLifecycle = loadedHttpCycles.get(0);
      final StubRequest actualRequest = actualHttpLifecycle.getRequest();
      final MapEntry queryEntryOne = MapEntry.entry(expectedParamOne, expectedParamOneValue);

      assertThat(actualRequest.getUrl()).contains(fullQueryOne);
      assertThat(actualRequest.getQuery()).contains(queryEntryOne);
   }
View Full Code Here

Examples of org.fest.assertions.data.MapEntry

         .withStatus("201").build();

      final List<StubHttpLifecycle> loadedHttpCycles = unmarshall(yaml);
      final StubHttpLifecycle actualHttpLifecycle = loadedHttpCycles.get(0);
      final StubRequest actualRequest = actualHttpLifecycle.getRequest();
      final MapEntry queryEntryOne = MapEntry.entry(expectedParamOne, expectedParamOneValue);

      assertThat(actualRequest.getUrl()).contains(fullQueryOne);
      assertThat(actualRequest.getQuery()).contains(queryEntryOne);
   }
View Full Code Here

Examples of org.fest.assertions.data.MapEntry

      assertThat(actualRequest.getUrl()).contains(String.format("%s/%s", baseRequestUrl, 499));
      assertThat(actualRequest.getUrl()).contains(String.format("%s=%s", expectedParamOne, 499));
      assertThat(actualRequest.getUrl()).contains(String.format("%s=%s", expectedParamTwo, 499));

      final MapEntry headerEntry = MapEntry.entry(expectedHeaderKey, expectedHeaderValue);
      assertThat(actualResponse.getHeaders()).contains(headerEntry);
   }
View Full Code Here

Examples of org.geotools.util.MapEntry

                String attName;
                Map attributesMap;
                for (int i = 0; i < attributeCount; i++) {
                    attName = types.get(i).getLocalName();
                    attributesMap = new AttributeMap(attName, feature);
                    entrySet.add(new MapEntry(attName, attributesMap));
                }
            }
            return entrySet;
        }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.sharedstate.common.state.SharedStateComponentServerState.MapEntry

        List<MapEntry> out = new ArrayList<MapEntry>();

        for (Entry<String, ManagedReference<SharedMapImpl>> e :
                    recv.mapsRef.get().entrySet())
        {
            MapEntry me = new MapEntry(e.getKey());
            List<SharedDataEntry> l = new ArrayList<SharedDataEntry>();

            for (Entry<String, SharedData> de : e.getValue().get().entrySet()) {
                // if the value is transient, don't include it
                Class clazz = de.getValue().getClass();
                if (clazz.isAnnotationPresent(SharedStateTransient.class)) {
                    continue;
                }
               
                l.add(new SharedDataEntry(de.getKey(), de.getValue()));
            }

            me.setData(l.toArray(new SharedDataEntry[0]));
            out.add(me);
        }

        return out.toArray(new MapEntry[0]);
    }
View Full Code Here

Examples of org.molgenis.util.plink.datatypes.MapEntry

    {
      String chromosome = strTokenizer.nextToken();
      String snp = strTokenizer.nextToken();
      double cM = Double.parseDouble(strTokenizer.nextToken());
      long bpPos = Long.parseLong(strTokenizer.nextToken());
      return new MapEntry(chromosome, snp, cM, bpPos);
    }
    catch (NoSuchElementException e)
    {
      throw new IOException("error in line: " + line, e);
    }
View Full Code Here

Examples of org.osgi.service.blueprint.reflect.MapEntry

        }
        this.serviceProperties.add(serviceProperty);
    }

    public MapEntry addServiceProperty(NonNullMetadata key, Metadata value) {
        MapEntry serviceProperty = new MapEntryImpl(key, value);
        addServiceProperty(serviceProperty);
        return serviceProperty;
    }
View Full Code Here

Examples of org.osgi.service.blueprint.reflect.MapEntry

        }
        this.entries.add(entry);
    }

    public MapEntry addEntry(NonNullMetadata key, Metadata value) {
        MapEntry entry = new MapEntryImpl(key, value);
        addEntry(entry);
        return entry;
    }
View Full Code Here

Examples of org.osgi.service.blueprint.reflect.MapEntry

        }
        this.entries.add(entry);
    }

    public MapEntry addEntry(NonNullMetadata key, Metadata value) {
        MapEntry entry = new MapEntryImpl(key, value);
        addEntry(entry);
        return entry;
    }
View Full Code Here

Examples of org.wso2.carbon.registry.samples.custom.topics.beans.MapEntry

            String childPath, List<MapEntry> endpointList, List<MapEntry> topicList, UserRegistry registry)
            throws Exception {

        Resource r = registry.get(childPath);
        if (TopicConstants.TOPIC_MEDIA_TYPE.equals(r.getMediaType())) {
            MapEntry topicEntry = new MapEntry(RegistryUtils.getResourceName(childPath), childPath);
            topicList.add(topicEntry);

        } else if (TopicConstants.ENDPOINT_MEDIA_TYPE.equals(r.getMediaType())) {
            MapEntry endpointEntry = new MapEntry(RegistryUtils.getResourceName(childPath), childPath);
            endpointList.add(endpointEntry);

        } else if (TopicConstants.SUBSCRIPTIONS_MEDIA_TYPE.equals(r.getMediaType())) {

            Collection subcriptions = (Collection) registry.get(childPath);
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.