Пример #1
0
  @Test
  public void putEmpty() {
    field.setTag(SenderCompID);
    field.put(buffer);

    buffer.flip();

    assertEquals("", getString(buffer));
  }
Пример #2
0
  @Test
  public void put() {
    field.setTag(SenderCompID);
    field.getValue().setString("initiator");
    field.put(buffer);

    buffer.flip();

    assertEquals("49=initiator\u0001", getString(buffer));
  }