test_class.declarator: encoder = new SbeMessageBufferEncoder<>(10)
test_class.modifier: private final
test_class.original_string: private final SbeMessageBufferEncoder<CarDecoder> encoder = new SbeMessageBufferEncoder<>(10);
test_class.type: SbeMessageBufferEncoder<CarDecoder>
test_class.var_name: encoder
test_class.file: recall-sbe/src/test/java/com/aitusoftware/recall/sbe/SbeMessageBufferEncoderTest.java
test_class.identifier: SbeMessageBufferEncoderTest
test_case.body: @Test
      void shouldThrowExceptionIfEncodedLengthExceedMaxMessageLength()
      {
          final CarDecoder carDecoder = new CarDecoder();
          carDecoder.wrap(new UnsafeBuffer(new byte[64]), 0, carDecoder.sbeBlockLength(), 0);
          Assertions.assertThrows(IllegalArgumentException.class,
              () -> encoder.store(new UnsafeBuffer(new byte[0]), 0, carDecoder),
              "Unable to encode message of length 49");
      }
test_case.class_method_signature: SbeMessageBufferEncoderTest.shouldThrowExceptionIfEncodedLengthExceedMaxMessageLength()
test_case.full_signature: @Test void shouldThrowExceptionIfEncodedLengthExceedMaxMessageLength()
test_case.identifier: shouldThrowExceptionIfEncodedLengthExceedMaxMessageLength
test_case.invocations: wrap sbeBlockLength assertThrows store
test_case.modifiers: @Test
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowExceptionIfEncodedLengthExceedMaxMessageLength()
focal_class.declarator: maxMessageLength
focal_class.modifier: private final
focal_class.original_string: private final int maxMessageLength;
focal_class.type: int
focal_class.var_name: maxMessageLength
focal_class.file: recall-sbe/src/main/java/com/aitusoftware/recall/sbe/SbeMessageBufferEncoder.java
focal_class.identifier: SbeMessageBufferEncoder
focal_class.interfaces: implements Encoder<UnsafeBuffer, T>
focal_class.class_method_signature: SbeMessageBufferEncoder.SbeMessageBufferEncoder(final int maxMessageLength)
focal_class.full_signature: public  SbeMessageBufferEncoder(final int maxMessageLength)
focal_class.identifier: SbeMessageBufferEncoder
focal_class.modifiers: public
focal_class.parameters: (final int maxMessageLength)
focal_class.signature:  SbeMessageBufferEncoder(final int maxMessageLength)
focal_class.class_method_signature: SbeMessageBufferEncoder.store(final UnsafeBuffer buffer, final int offset, final T value)
focal_class.full_signature: @Override public void store(final UnsafeBuffer buffer, final int offset, final T value)
focal_class.identifier: store
focal_class.modifiers: @Override public
focal_class.parameters: (final UnsafeBuffer buffer, final int offset, final T value)
focal_class.return: void
focal_class.signature: void store(final UnsafeBuffer buffer, final int offset, final T value)
focal_method.body: @Override
      public void store(final UnsafeBuffer buffer, final int offset, final T value)
      {
          final int encodedLength = value.encodedLength();
          if (encodedLength > maxMessageLength)
          {
              throw new IllegalArgumentException("Unable to encode message of length " + encodedLength);
          }
          buffer.putBytes(offset, value.buffer(), value.offset(), encodedLength);
      }
focal_method.class_method_signature: SbeMessageBufferEncoder.store(final UnsafeBuffer buffer, final int offset, final T value)
focal_method.full_signature: @Override public void store(final UnsafeBuffer buffer, final int offset, final T value)
focal_method.identifier: store
focal_method.invocations: encodedLength putBytes buffer offset
focal_method.modifiers: @Override public
focal_method.parameters: (final UnsafeBuffer buffer, final int offset, final T value)
focal_method.return: void
focal_method.signature: void store(final UnsafeBuffer buffer, final int offset, final T value)