@Test public void shouldConvert() throws Exception { RequestMap expectedMap = new RequestMap(); expectedMap.putMap(new HashMap<String, String>() {{ put("param1", "value1"); put("param2", "value2"); }}); RequestMap map = mapConverter.convert(parameters); assertEquals(expectedMap, map); }
@Override protected void convert(RequestMap requestMap, Iterable<? extends Parameter> parameters) { for (Parameter parameter : parameters) { requestMap.putString(parameter.getName(), parameter.getValue()); } }
ParameterV2MapConverter extends AbstractMapConverter<Iterable<? extends Parameter>> { @Override protected void convert(RequestMap requestMap, Iterable<? extends Parameter> parameters) { for (Parameter parameter : parameters) { requestMap.putString(parameter.getName(), parameter.getValue()); } } }
ParameterV2MapConverter extends AbstractMapConverter<Iterable<? extends Parameter>> { @Override protected void convert(RequestMap requestMap, Iterable<? extends Parameter> parameters) { for (Parameter parameter : parameters) { requestMap.putString(parameter.getName(), parameter.getValue()); } }  }
ParameterV2MapConverter extends AbstractMapConverter<Iterable<? extends Parameter>> { @Override protected void convert(RequestMap requestMap, Iterable<? extends Parameter> parameters) { for (Parameter parameter : parameters) { requestMap.putString(parameter.getName(), parameter.getValue()); } }   }
ParameterV2MapConverter extends AbstractMapConverter<Iterable<? extends Parameter>> { @Override protected void convert(RequestMap requestMap, Iterable<? extends Parameter> parameters) { for (Parameter parameter : parameters) { requestMap.putString(parameter.getName(), parameter.getValue()); } }    }