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