test_class.declarator: DATA_WP_EXAMPLE = {11, 4, 91, 91, 35, 70, -11, 26, 108,
              9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1, -93, 43, 89, 68}
test_class.modifier: static final
test_class.original_string: static final byte[] DATA_WP_EXAMPLE = {11, 4, 91, 91, 35, 70, -11, 26, 108,
              9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1, -93, 43, 89, 68};
test_class.type: byte[]
test_class.var_name: DATA_WP_EXAMPLE
test_class.declarator: DATA_VALID_NO_OFFSETS_V3 = {11, 4, 91, 91, 35,
              70, -11, 26, 108, 9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1, -93,
              43, 25}
test_class.modifier: private static final
test_class.original_string: private static final byte[] DATA_VALID_NO_OFFSETS_V3 = {11, 4, 91, 91, 35,
              70, -11, 26, 108, 9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1, -93,
              43, 25};
test_class.type: byte[]
test_class.var_name: DATA_VALID_NO_OFFSETS_V3
test_class.declarator: DATA_VALID_WITH_OFFSETS_V3 = {11, 4, 91, 91,
              35, 70, -11, 26, 108, 9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1,
              -93, 43, 121, 68, 93}
test_class.modifier: private static final
test_class.original_string: private static final byte[] DATA_VALID_WITH_OFFSETS_V3 = {11, 4, 91, 91,
              35, 70, -11, 26, 108, 9, 0, -101, -2, 59, 27, -76, 4, -1, -21, -1,
              -93, 43, 121, 68, 93};
test_class.type: byte[]
test_class.var_name: DATA_VALID_WITH_OFFSETS_V3
test_class.declarator: DATA_VALID_WITH_OFFSETS_V2_BYTE1 = 10
test_class.modifier: private static final
test_class.original_string: private static final int DATA_VALID_WITH_OFFSETS_V2_BYTE1 = 10;
test_class.type: int
test_class.var_name: DATA_VALID_WITH_OFFSETS_V2_BYTE1
test_class.declarator: POSITIVE_OFFSET_BINARY_V2 = 2
test_class.modifier: private static final
test_class.original_string: private static final int POSITIVE_OFFSET_BINARY_V2 = 2;
test_class.type: int
test_class.var_name: POSITIVE_OFFSET_BINARY_V2
test_class.declarator: POSITVE_OFFSET_WP_EXAMPLE = 150
test_class.modifier: private static final
test_class.original_string: private static final int POSITVE_OFFSET_WP_EXAMPLE = 150;
test_class.type: int
test_class.var_name: POSITVE_OFFSET_WP_EXAMPLE
test_class.declarator: NEGATIVE_OFFSET = 100
test_class.modifier: private static final
test_class.original_string: private static final int NEGATIVE_OFFSET = 100;
test_class.type: int
test_class.var_name: NEGATIVE_OFFSET
test_class.declarator: POSITVE_OFFSET_TOO_LONG = 2000
test_class.modifier: private static final
test_class.original_string: private static final int POSITVE_OFFSET_TOO_LONG = 2000;
test_class.type: int
test_class.var_name: POSITVE_OFFSET_TOO_LONG
test_class.declarator: BINARY_ENCODER = new OpenLRBinaryEncoder()
test_class.modifier: private static final
test_class.original_string: private static final OpenLRBinaryEncoder BINARY_ENCODER = new OpenLRBinaryEncoder();
test_class.type: OpenLRBinaryEncoder
test_class.var_name: BINARY_ENCODER
test_class.declarator: dataValidWithOffsetsV2 = new byte[DATA_VALID_WITH_OFFSETS_V3.length]
test_class.modifier: private static
test_class.original_string: private static byte[] dataValidWithOffsetsV2 = new byte[DATA_VALID_WITH_OFFSETS_V3.length];
test_class.type: byte[]
test_class.var_name: dataValidWithOffsetsV2
test_class.declarator: expectedData
test_class.modifier: private static
test_class.original_string: private static Map<Integer, byte[]> expectedData;
test_class.type: Map<Integer, byte[]>
test_class.var_name: expectedData
test_class.declarator: lineLocRefEmpty
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefEmpty;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefEmpty
test_class.declarator: lineLocRefOffsetsNull
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefOffsetsNull;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefOffsetsNull
test_class.declarator: lineLocRefValidOffset0
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefValidOffset0;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefValidOffset0
test_class.declarator: lineLocRefValidWithOffset
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefValidWithOffset;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefValidWithOffset
test_class.declarator: lineLocRefWpExample
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefWpExample;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefWpExample
test_class.declarator: lineLocRefValidOffsetTooLong
test_class.modifier: private
test_class.original_string: private RawLocationReference lineLocRefValidOffsetTooLong;
test_class.type: RawLocationReference
test_class.var_name: lineLocRefValidOffsetTooLong
test_class.file: binary/src/test/java/openlr/binary/OpenLRBinaryEncoderTest.java
test_class.identifier: OpenLRBinaryEncoderTest
test_case.body: @Test
      public final void testInvalidLocationEncoding() {
          LocationReference result = BINARY_ENCODER.encodeData(lineLocRefEmpty);
          assertFalse(result.isValid());
          assertSame(result.getReturnCode(), MISSING_DATA);
          assertNotNull(result.toString());
          assertNull(result.getLocationReferenceData());
      }
test_case.class_method_signature: OpenLRBinaryEncoderTest.testInvalidLocationEncoding()
test_case.full_signature: @Test public final void testInvalidLocationEncoding()
test_case.identifier: testInvalidLocationEncoding
test_case.invocations: encodeData assertFalse isValid assertSame getReturnCode assertNotNull toString assertNull getLocationReferenceData
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidLocationEncoding()
focal_class.declarator: VERSIONS = {2, 3}
focal_class.modifier: private static final
focal_class.original_string: private static final int[] VERSIONS = {2, 3};
focal_class.type: int[]
focal_class.var_name: VERSIONS
focal_class.file: binary/src/main/java/openlr/binary/OpenLRBinaryEncoder.java
focal_class.identifier: OpenLRBinaryEncoder
focal_class.interfaces: implements PhysicalEncoder
focal_class.class_method_signature: OpenLRBinaryEncoder.checkVersion(final int version, final LocationType lt)
focal_class.full_signature: private boolean checkVersion(final int version, final LocationType lt)
focal_class.identifier: checkVersion
focal_class.modifiers: private
focal_class.parameters: (final int version, final LocationType lt)
focal_class.return: boolean
focal_class.signature: boolean checkVersion(final int version, final LocationType lt)
focal_class.class_method_signature: OpenLRBinaryEncoder.getDataClass()
focal_class.full_signature: public final Class<?> getDataClass()
focal_class.identifier: getDataClass
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Class<?>
focal_class.signature: Class<?> getDataClass()
focal_class.class_method_signature: OpenLRBinaryEncoder.getDataFormatIdentifier()
focal_class.full_signature: public final String getDataFormatIdentifier()
focal_class.identifier: getDataFormatIdentifier
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getDataFormatIdentifier()
focal_class.class_method_signature: OpenLRBinaryEncoder.getSupportedVersions()
focal_class.full_signature: public final int[] getSupportedVersions()
focal_class.identifier: getSupportedVersions
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: int[]
focal_class.signature: int[] getSupportedVersions()
focal_class.class_method_signature: OpenLRBinaryEncoder.encodeData(
              final RawLocationReference rawLocRef)
focal_class.full_signature: public final LocationReference encodeData(
              final RawLocationReference rawLocRef)
focal_class.identifier: encodeData
focal_class.modifiers: public final
focal_class.parameters: (
              final RawLocationReference rawLocRef)
focal_class.return: LocationReference
focal_class.signature: LocationReference encodeData(
              final RawLocationReference rawLocRef)
focal_class.class_method_signature: OpenLRBinaryEncoder.encodeData(
              final RawLocationReference rawLocRef, final int version)
focal_class.full_signature: public final LocationReference encodeData(
              final RawLocationReference rawLocRef, final int version)
focal_class.identifier: encodeData
focal_class.modifiers: public final
focal_class.parameters: (
              final RawLocationReference rawLocRef, final int version)
focal_class.return: LocationReference
focal_class.signature: LocationReference encodeData(
              final RawLocationReference rawLocRef, final int version)
focal_method.body: public final LocationReference encodeData(
              final RawLocationReference rawLocRef) {
          return encodeData(rawLocRef, VERSIONS[VERSIONS.length - 1]);
      }
focal_method.class_method_signature: OpenLRBinaryEncoder.encodeData(
              final RawLocationReference rawLocRef)
focal_method.full_signature: public final LocationReference encodeData(
              final RawLocationReference rawLocRef)
focal_method.identifier: encodeData
focal_method.invocations: encodeData
focal_method.modifiers: public final
focal_method.parameters: (
              final RawLocationReference rawLocRef)
focal_method.return: LocationReference
focal_method.signature: LocationReference encodeData(
              final RawLocationReference rawLocRef)