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