test_class.declarator: resultSetMetaData
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ResultSetMetaData resultSetMetaData;
test_class.type: ResultSetMetaData
test_class.var_name: resultSetMetaData
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.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnDefinition41PacketTest.java
test_class.identifier: MySQLColumnDefinition41PacketTest
test_case.body: @Test
      public void assertWriteWithResultSetMetaData() throws SQLException {
          when(resultSetMetaData.getSchemaName(1)).thenReturn("logic_db");
          when(resultSetMetaData.getTableName(1)).thenReturn("tbl");
          when(resultSetMetaData.getColumnLabel(1)).thenReturn("id");
          when(resultSetMetaData.getColumnName(1)).thenReturn("id");
          when(resultSetMetaData.getColumnDisplaySize(1)).thenReturn(10);
          when(resultSetMetaData.getColumnType(1)).thenReturn(Types.INTEGER);
          MySQLColumnDefinition41Packet actual = new MySQLColumnDefinition41Packet(1, resultSetMetaData, 1);
          assertThat(actual.getSequenceId(), is(1));
          actual.write(payload);
          verifyWrite();
      }
test_case.class_method_signature: MySQLColumnDefinition41PacketTest.assertWriteWithResultSetMetaData()
test_case.full_signature: @Test public void assertWriteWithResultSetMetaData()
test_case.identifier: assertWriteWithResultSetMetaData
test_case.invocations: thenReturn when getSchemaName thenReturn when getTableName thenReturn when getColumnLabel thenReturn when getColumnName thenReturn when getColumnDisplaySize thenReturn when getColumnType assertThat getSequenceId is write verifyWrite
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWriteWithResultSetMetaData()
focal_class.declarator: CATALOG = "def"
focal_class.modifier: private static final
focal_class.original_string: private static final String CATALOG = "def";
focal_class.type: String
focal_class.var_name: CATALOG
focal_class.declarator: NEXT_LENGTH = 0x0c
focal_class.modifier: private static final
focal_class.original_string: private static final int NEXT_LENGTH = 0x0c;
focal_class.type: int
focal_class.var_name: NEXT_LENGTH
focal_class.declarator: sequenceId
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final int sequenceId;
focal_class.type: int
focal_class.var_name: sequenceId
focal_class.declarator: characterSet
focal_class.modifier: private final
focal_class.original_string: private final int characterSet;
focal_class.type: int
focal_class.var_name: characterSet
focal_class.declarator: flags
focal_class.modifier: private final
focal_class.original_string: private final int flags;
focal_class.type: int
focal_class.var_name: flags
focal_class.declarator: schema
focal_class.modifier: private final
focal_class.original_string: private final String schema;
focal_class.type: String
focal_class.var_name: schema
focal_class.declarator: table
focal_class.modifier: private final
focal_class.original_string: private final String table;
focal_class.type: String
focal_class.var_name: table
focal_class.declarator: orgTable
focal_class.modifier: private final
focal_class.original_string: private final String orgTable;
focal_class.type: String
focal_class.var_name: orgTable
focal_class.declarator: name
focal_class.modifier: private final
focal_class.original_string: private final String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: orgName
focal_class.modifier: private final
focal_class.original_string: private final String orgName;
focal_class.type: String
focal_class.var_name: orgName
focal_class.declarator: columnLength
focal_class.modifier: private final
focal_class.original_string: private final int columnLength;
focal_class.type: int
focal_class.var_name: columnLength
focal_class.declarator: columnType
focal_class.modifier: private final
focal_class.original_string: private final MySQLColumnType columnType;
focal_class.type: MySQLColumnType
focal_class.var_name: columnType
focal_class.declarator: decimals
focal_class.modifier: private final
focal_class.original_string: private final int decimals;
focal_class.type: int
focal_class.var_name: decimals
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/command/query/MySQLColumnDefinition41Packet.java
focal_class.identifier: MySQLColumnDefinition41Packet
focal_class.interfaces: implements MySQLPacket
focal_class.class_method_signature: MySQLColumnDefinition41Packet.MySQLColumnDefinition41Packet(final int sequenceId, final ResultSetMetaData resultSetMetaData, final int columnIndex)
focal_class.full_signature: public  MySQLColumnDefinition41Packet(final int sequenceId, final ResultSetMetaData resultSetMetaData, final int columnIndex)
focal_class.identifier: MySQLColumnDefinition41Packet
focal_class.modifiers: public
focal_class.parameters: (final int sequenceId, final ResultSetMetaData resultSetMetaData, final int columnIndex)
focal_class.signature:  MySQLColumnDefinition41Packet(final int sequenceId, final ResultSetMetaData resultSetMetaData, final int columnIndex)
focal_class.class_method_signature: MySQLColumnDefinition41Packet.MySQLColumnDefinition41Packet(final int sequenceId, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.full_signature: public  MySQLColumnDefinition41Packet(final int sequenceId, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.identifier: MySQLColumnDefinition41Packet
focal_class.modifiers: public
focal_class.parameters: (final int sequenceId, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.signature:  MySQLColumnDefinition41Packet(final int sequenceId, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.class_method_signature: MySQLColumnDefinition41Packet.MySQLColumnDefinition41Packet(final int sequenceId, final int flags, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.full_signature: public  MySQLColumnDefinition41Packet(final int sequenceId, final int flags, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.identifier: MySQLColumnDefinition41Packet
focal_class.modifiers: public
focal_class.parameters: (final int sequenceId, final int flags, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.signature:  MySQLColumnDefinition41Packet(final int sequenceId, final int flags, final String schema, final String table, final String orgTable,
                                           final String name, final String orgName, final int columnLength, final MySQLColumnType columnType, final int decimals)
focal_class.class_method_signature: MySQLColumnDefinition41Packet.MySQLColumnDefinition41Packet(final MySQLPacketPayload payload)
focal_class.full_signature: public  MySQLColumnDefinition41Packet(final MySQLPacketPayload payload)
focal_class.identifier: MySQLColumnDefinition41Packet
focal_class.modifiers: public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.signature:  MySQLColumnDefinition41Packet(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLColumnDefinition41Packet.write(final MySQLPacketPayload payload)
focal_class.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void write(final MySQLPacketPayload payload)
focal_method.body: @Override
      public void write(final MySQLPacketPayload payload) {
          payload.writeStringLenenc(CATALOG);
          payload.writeStringLenenc(schema);
          payload.writeStringLenenc(table);
          payload.writeStringLenenc(orgTable);
          payload.writeStringLenenc(name);
          payload.writeStringLenenc(orgName);
          payload.writeIntLenenc(NEXT_LENGTH);
          payload.writeInt2(characterSet);
          payload.writeInt4(columnLength);
          payload.writeInt1(columnType.getValue());
          payload.writeInt2(flags);
          payload.writeInt1(decimals);
          payload.writeReserved(2);
      }
focal_method.class_method_signature: MySQLColumnDefinition41Packet.write(final MySQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeStringLenenc writeStringLenenc writeStringLenenc writeStringLenenc writeStringLenenc writeStringLenenc writeIntLenenc writeInt2 writeInt4 writeInt1 getValue writeInt2 writeInt1 writeReserved
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final MySQLPacketPayload payload)