philadelphia-core: Clean up 'FIXValue#asChar' tests
@@ -175,17 +175,17 @@ class FIXValueTest {
}
@Test
- void setChar() {
- value.setChar('Y');
+ void notChar() {
+ value.setString("FOO");
- assertEquals("Y\u0001", put());
+ assertThrows(FIXValueFormatException.class, () -> value.asChar());
}
@Test
- void notChar() {
- value.setString("FOO");
+ void setChar() {
+ value.setChar('Y');
- assertThrows(FIXValueFormatException.class, () -> value.asChar());
+ assertEquals("Y\u0001", put());
}
@Test
