Map<String, InjectionWrapper> inputs = c.getInjectionMap();
Assert.assertEquals(inputs.size(), 10);
InjectionWrapper wrapper = inputs.get("integerInput");
RequestParameterInjectionHandler handler = (RequestParameterInjectionHandler) wrapper.getInjectionHandlers()
.get(0);
InjectionSetter info = wrapper.getInjectionSetter();
Assert.assertEquals("setIntegerInput", info.getMethodName());
Assert.assertEquals("integerInput", info.getPropertyName());
Assert.assertEquals(Integer.class, info.getType());
Assert.assertEquals("integerInput", handler.getParameterName());
Assert.assertEquals(StandardBeanUtilsConverter.class, handler.getConverter().getClass());
wrapper = inputs.get("longInput");
handler = (RequestParameterInjectionHandler) wrapper.getInjectionHandlers().get(0);
info = wrapper.getInjectionSetter();
Assert.assertEquals("setLongInput", info.getMethodName());
Assert.assertEquals("longInput", info.getPropertyName());
Assert.assertEquals(Long.class, info.getType());
Assert.assertEquals("longInput", handler.getParameterName());
Assert.assertEquals(StandardBeanUtilsConverter.class, handler.getConverter().getClass());
wrapper = inputs.get("convertedLongInput");
handler = (RequestParameterInjectionHandler) wrapper.getInjectionHandlers().get(0);
info = wrapper.getInjectionSetter();
Assert.assertEquals("setConvertedLongInput", info.getMethodName());
Assert.assertEquals("convertedLongInput", info.getPropertyName());
Assert.assertEquals(String.class, info.getType());
Assert.assertEquals("converted_long", handler.getParameterName());
Assert.assertEquals(StringConverter.class, handler.getConverter().getClass());
}