コード例 #1
0
  private void assertPutEquals(String s) {
    ByteBuffer buffer = ByteBuffer.allocate(s.length());

    value.put(buffer);
    buffer.flip();

    assertEquals(s, ByteBuffers.getString(buffer));
  }
コード例 #2
0
 @Test
 public void readPartial() throws FIXValueOverflowException {
   assertEquals(false, value.get(ByteBuffers.wrap("foo")));
 }
コード例 #3
0
 private void get(String s) throws FIXValueOverflowException {
   value.get(ByteBuffers.wrap(s));
 }
コード例 #4
0
  @Test
  public void readOverflow() throws FIXValueOverflowException {
    exception.expect(FIXValueOverflowException.class);

    value.get(ByteBuffers.wrap("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"));
  }