@Test public void createsInstanceAndUsesFirstValueFromMap() throws Exception { MultivaluedMap<String, String> values = new MultivaluedMapImpl(); values.addAll("number", "2147483647", "746384741"); Object result = producer.createValue("number", values, null); assertEquals(new Integer("2147483647"), result); }
@Override protected Object createValue(String value) throws Exception { if (value == null) { return null; } return valueOfMethod.invoke(null, value); }
StringValueOfProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { if (value == null) { return null; } return valueOfMethod.invoke(null, value); } }
StringValueOfProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { if (value == null) { return null; } return valueOfMethod.invoke(null, value); } StringValueOfProducer(Method valueOfMethod); }
StringValueOfProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { if (value == null) { return null; } return valueOfMethod.invoke(null, value); } StringValueOfProducer(Method valueOfMethod);  }
StringValueOfProducer extends BaseTypeProducer { @Override protected Object createValue(String value) throws Exception { if (value == null) { return null; } return valueOfMethod.invoke(null, value); } StringValueOfProducer(Method valueOfMethod);   }