public void testToLongWithLargeValue() { try { ScalarValue value = string(" 9223372036854775808"); value.toLong(); fail(); } catch (FastException e) { assertEquals(FastConstants.R4_NUMERIC_VALUE_TOO_LARGE, e.getCode()); } }
public void testToIntWithLargeValue() { try { ScalarValue value = string("2147483648"); value.toInt(); fail(); } catch (FastException e) { assertEquals(FastConstants.R4_NUMERIC_VALUE_TOO_LARGE, e.getCode()); } }