@Test public void notTimestamp() { value.setString("FOO"); exception.expect(FIXValueFormatException.class); value.asTimestamp(new MutableDateTime()); }
@Test public void asTimestampWithoutMillis() throws FIXValueOverflowException { get("20150924-09:30.05"); MutableDateTime t = new MutableDateTime(); value.asTimestamp(t); assertEquals(new MutableDateTime(2015, 9, 24, 9, 30, 5, 0), t); }