philadelphia-core: Improve 'FIXValue#toString' tests
@@ -805,12 +805,23 @@ class FIXValueTest {
}
@Test
- void print() {
+ void string() {
value.setString("FOO");
assertEquals("FOO|", value.toString());
}
+ @Test
+ void stringWithStringBuilder() {
+ value.setString("FOO");
+
+ StringBuilder builder = new StringBuilder();
+
+ value.toString(builder);
+
+ assertEquals("FOO|", builder.toString());
+ }
+
private boolean get(String text) {
try {
return value.get(ByteBuffers.wrap(text));
