test_class.declarator: payload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private MySQLPacketPayload payload;
test_class.type: MySQLPacketPayload
test_class.var_name: payload
test_class.declarator: byteBuf
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ByteBuf byteBuf;
test_class.type: ByteBuf
test_class.var_name: byteBuf
test_class.declarator: columnDef
test_class.modifier: private
test_class.original_string: private MySQLBinlogColumnDef columnDef;
test_class.type: MySQLBinlogColumnDef
test_class.var_name: columnDef
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/string/MySQLStringBinlogProtocolValueTest.java
test_class.identifier: MySQLStringBinlogProtocolValueTest
test_case.body: @Test
      public void assertReadEnumValueWithMeta2() {
          columnDef.setColumnMeta((MySQLColumnType.MYSQL_TYPE_ENUM.getValue() << 8) + 2);
          when(payload.readInt2()).thenReturn(32767);
          assertThat(new MySQLStringBinlogProtocolValue().read(columnDef, payload), is(32767));
      }
test_case.class_method_signature: MySQLStringBinlogProtocolValueTest.assertReadEnumValueWithMeta2()
test_case.full_signature: @Test public void assertReadEnumValueWithMeta2()
test_case.identifier: assertReadEnumValueWithMeta2
test_case.invocations: setColumnMeta getValue thenReturn when readInt2 assertThat read is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertReadEnumValueWithMeta2()
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/binlog/row/column/value/string/MySQLStringBinlogProtocolValue.java
focal_class.identifier: MySQLStringBinlogProtocolValue
focal_class.interfaces: implements MySQLBinlogProtocolValue
focal_class.class_method_signature: MySQLStringBinlogProtocolValue.read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_class.full_signature: @Override public Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_class.identifier: read
focal_class.modifiers: @Override public
focal_class.parameters: (final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_class.return: Serializable
focal_class.signature: Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLStringBinlogProtocolValue.readEnumValue(final int meta, final MySQLPacketPayload payload)
focal_class.full_signature: private Serializable readEnumValue(final int meta, final MySQLPacketPayload payload)
focal_class.identifier: readEnumValue
focal_class.modifiers: private
focal_class.parameters: (final int meta, final MySQLPacketPayload payload)
focal_class.return: Serializable
focal_class.signature: Serializable readEnumValue(final int meta, final MySQLPacketPayload payload)
focal_method.body: @Override
      public Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload) {
          switch (MySQLColumnType.valueOf(columnDef.getColumnMeta() >> 8)) {
              case MYSQL_TYPE_ENUM:
                  return readEnumValue(columnDef.getColumnMeta() & 0xff, payload);
              case MYSQL_TYPE_SET:
                  return payload.getByteBuf().readByte();
              case MYSQL_TYPE_STRING:
                  return payload.readStringFix(payload.getByteBuf().readUnsignedByte());
              default:
                  throw new UnsupportedOperationException("");
          }
      }
focal_method.class_method_signature: MySQLStringBinlogProtocolValue.read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_method.full_signature: @Override public Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_method.identifier: read
focal_method.invocations: valueOf getColumnMeta readEnumValue getColumnMeta readByte getByteBuf readStringFix readUnsignedByte getByteBuf
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)
focal_method.return: Serializable
focal_method.signature: Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload)