philadelphia-core: Improve 'FIXValue#asDate' tests
@@ -664,6 +664,13 @@ class FIXValueTest {
assertEquals(new MutableDateTime(2015, 9, 24, 0, 0, 0, 0), d);
}
+ @Test
+ void notDate() {
+ value.setString("FOO");
+
+ assertThrows(FIXValueFormatException.class, () -> value.asDate(new MutableDateTime()));
+ }
+
@Test
void setDate() {
value.setDate(new MutableDateTime(2015, 9, 24, 0, 0, 0, 0));
