test_class.declarator: payload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PostgreSQLPacketPayload payload;
test_class.type: PostgreSQLPacketPayload
test_class.var_name: payload
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/PostgreSQLRowDescriptionPacketTest.java
test_class.identifier: PostgreSQLRowDescriptionPacketTest
test_case.body: @Test
      public void assertWrite() {
          PostgreSQLColumnDescription description = new PostgreSQLColumnDescription("name", 1, Types.VARCHAR, 4, null);
          PostgreSQLRowDescriptionPacket packet = new PostgreSQLRowDescriptionPacket(1, Collections.singletonList(description));
          packet.write(payload);
          verify(payload, times(2)).writeInt2(1);
          verify(payload).writeStringNul("name");
          verify(payload).writeInt4(0);
          verify(payload, times(2)).writeInt2(1);
          verify(payload).writeInt4(1043);
          verify(payload).writeInt2(4);
          verify(payload).writeInt4(-1);
          verify(payload).writeInt2(0);
      }
test_case.class_method_signature: PostgreSQLRowDescriptionPacketTest.assertWrite()
test_case.full_signature: @Test public void assertWrite()
test_case.identifier: assertWrite
test_case.invocations: singletonList write writeInt2 verify times writeStringNul verify writeInt4 verify writeInt2 verify times writeInt4 verify writeInt2 verify writeInt4 verify writeInt2 verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWrite()
focal_class.declarator: messageType = PostgreSQLCommandPacketType.ROW_DESCRIPTION.getValue()
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final char messageType = PostgreSQLCommandPacketType.ROW_DESCRIPTION.getValue();
focal_class.type: char
focal_class.var_name: messageType
focal_class.declarator: fieldCount
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final int fieldCount;
focal_class.type: int
focal_class.var_name: fieldCount
focal_class.declarator: columnDescriptions
focal_class.modifier: private final
focal_class.original_string: private final List<PostgreSQLColumnDescription> columnDescriptions;
focal_class.type: List<PostgreSQLColumnDescription>
focal_class.var_name: columnDescriptions
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/command/query/PostgreSQLRowDescriptionPacket.java
focal_class.identifier: PostgreSQLRowDescriptionPacket
focal_class.interfaces: implements PostgreSQLPacket
focal_class.class_method_signature: PostgreSQLRowDescriptionPacket.write(final PostgreSQLPacketPayload payload)
focal_class.full_signature: @Override public void write(final PostgreSQLPacketPayload payload)
focal_class.identifier: write
focal_class.modifiers: @Override public
focal_class.parameters: (final PostgreSQLPacketPayload payload)
focal_class.return: void
focal_class.signature: void write(final PostgreSQLPacketPayload payload)
focal_method.body: @Override
      public void write(final PostgreSQLPacketPayload payload) {
          payload.writeInt2(fieldCount);
          for (PostgreSQLColumnDescription each : columnDescriptions) {
              payload.writeStringNul(each.getColumnName());
              payload.writeInt4(each.getTableOID());
              payload.writeInt2(each.getColumnIndex());
              payload.writeInt4(each.getTypeOID());
              payload.writeInt2(each.getColumnLength());
              payload.writeInt4(each.getTypeModifier());
              payload.writeInt2(each.getDataFormat());
          }
      }
focal_method.class_method_signature: PostgreSQLRowDescriptionPacket.write(final PostgreSQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final PostgreSQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeInt2 writeStringNul getColumnName writeInt4 getTableOID writeInt2 getColumnIndex writeInt4 getTypeOID writeInt2 getColumnLength writeInt4 getTypeModifier writeInt2 getDataFormat
focal_method.modifiers: @Override public
focal_method.parameters: (final PostgreSQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final PostgreSQLPacketPayload payload)