public void testFromLongFactory() throws Exception { // Must use something that is forced as Long... long value = 12345678901244L; FactoryValueBean result = MAPPER.readValue("" + value, FactoryValueBean.class); assertEquals("" + value, result.toString()); }
public void testFromIntFactory() throws Exception { FactoryValueBean result = MAPPER.readValue("13", FactoryValueBean.class); assertEquals("13", result.toString()); }