@Test public void notInt() { value.setString("FOO"); exception.expect(FIXValueFormatException.class); value.asInt(); }
@Test public void asZeroInt() throws FIXValueOverflowException { get("0\u0001"); assertEquals(0, value.asInt()); }
@Test public void asNegativeInt() throws FIXValueOverflowException { get("-123\u0001"); assertEquals(-123, value.asInt()); }