package net.openhft.chronicle.bytes;

import org.junit.Test;

import java.io.IOException;

import static junit.framework.TestCase.assertEquals;

public class BytesTextMethodTesterTest {
    @Test
    public void run() throws IOException {
        BytesTextMethodTester tester = new BytesTextMethodTester<>("btmtt/one-input.txt", IBMImpl::new, IBytesMethod.class, "btmtt/one-output.txt");
        tester.run();
        assertEquals(tester.expected(), tester.actual());
    }

    static class IBMImpl implements IBytesMethod {
        final IBytesMethod out;

        IBMImpl(IBytesMethod out) {
            this.out = out;
        }

        @Override
        public void myByteable(MyByteable byteable) {
            out.myByteable(byteable);
        }

        @Override
        public void myScalars(MyScalars scalars) {
            out.myScalars(scalars);
        }

        @Override
        public void myNested(MyNested nested) {
            out.myNested(nested);
        }
    }
}
@@ -299,16 +299,33 @@
 ester%3C%3E(
+%0A                
 %22btmtt/o
@@ -342,22 +342,54 @@
 xt%22,
- IBMImpl::new,
+%0A                IBMImpl::new,%0A               
  IBy
@@ -404,16 +404,32 @@
 d.class,
+%0A               
  %22btmtt/

Add examples with multi-byte message ids.