philadelphia-core: Improve 'FIXValue#asTimeOnly' tests
@@ -700,6 +700,13 @@ class FIXValueTest {
assertEquals(new MutableDateTime(2015, 9, 24, 9, 30, 5, 0), t);
}
+ @Test
+ void notTimeOnly() {
+ value.setString("FOO");
+
+ assertThrows(FIXValueFormatException.class, () -> value.asTimeOnly(new MutableDateTime()));
+ }
+
@Test
void setTimeOnlyWithMillis() {
value.setTimeOnly(new MutableDateTime(2015, 9, 24, 9, 30, 5, 250), true);
