philadelphia-core: Clean up 'FIXValue#asTimestamp' tests
@@ -743,6 +743,13 @@ class FIXValueTest {
assertEquals(new MutableDateTime(2015, 9, 24, 9, 30, 5, 0), t);
}
+ @Test
+ void notTimestamp() {
+ value.setString("FOO");
+
+ assertThrows(FIXValueFormatException.class, () -> value.asTimestamp(new MutableDateTime()));
+ }
+
@Test
void setTimestampWithMillis() {
value.setTimestamp(new MutableDateTime(2015, 9, 24, 9, 30, 5, 250), true);
@@ -757,13 +764,6 @@ class FIXValueTest {
assertEquals("20150924-09:30:05\u0001", put());
}
- @Test
- void notTimestamp() {
- value.setString("FOO");
-
- assertThrows(FIXValueFormatException.class, () -> value.asTimestamp(new MutableDateTime()));
- }
-
@SuppressWarnings("deprecation")
@Test
void asCheckSum() {
