test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/test/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacketTest.java
test_class.identifier: PostgreSQLCommandCompletePacketTest
test_case.body: @Test
      public void assertReadWrite() {
          String sqlCommand = "SELECT * FROM t_order LIMIT 1";
          long rowCount = 1;
          String expectedString = sqlCommand + " " + rowCount;
          int expectedStringLength = expectedString.length();
          PostgreSQLPacketPayload payload = new PostgreSQLPacketPayload(ByteBufTestUtils.createByteBuf(expectedStringLength + 1));
          PostgreSQLCommandCompletePacket packet = new PostgreSQLCommandCompletePacket(sqlCommand, rowCount);
          assertThat(packet.getMessageType(), is(PostgreSQLCommandPacketType.COMMAND_COMPLETE.getValue()));
          packet.write(payload);
          assertThat(payload.readStringNul(), is(expectedString));
      }
test_case.class_method_signature: PostgreSQLCommandCompletePacketTest.assertReadWrite()
test_case.full_signature: @Test public void assertReadWrite()
test_case.identifier: assertReadWrite
test_case.invocations: length createByteBuf assertThat getMessageType is getValue write assertThat readStringNul is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertReadWrite()
focal_class.declarator: messageType = PostgreSQLCommandPacketType.COMMAND_COMPLETE.getValue()
focal_class.modifier: @Getter
      private final
focal_class.original_string: @Getter
      private final char messageType = PostgreSQLCommandPacketType.COMMAND_COMPLETE.getValue();
focal_class.type: char
focal_class.var_name: messageType
focal_class.declarator: sqlCommand
focal_class.modifier: private final
focal_class.original_string: private final String sqlCommand;
focal_class.type: String
focal_class.var_name: sqlCommand
focal_class.declarator: rowCount
focal_class.modifier: private final
focal_class.original_string: private final long rowCount;
focal_class.type: long
focal_class.var_name: rowCount
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-postgresql/src/main/java/org/apache/shardingsphere/db/protocol/postgresql/packet/generic/PostgreSQLCommandCompletePacket.java
focal_class.identifier: PostgreSQLCommandCompletePacket
focal_class.interfaces: implements PostgreSQLPacket
focal_class.class_method_signature: PostgreSQLCommandCompletePacket.PostgreSQLCommandCompletePacket()
focal_class.full_signature: public  PostgreSQLCommandCompletePacket()
focal_class.identifier: PostgreSQLCommandCompletePacket
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  PostgreSQLCommandCompletePacket()
focal_class.class_method_signature: PostgreSQLCommandCompletePacket.PostgreSQLCommandCompletePacket(final String sqlCommand, final long rowCount)
focal_class.full_signature: public  PostgreSQLCommandCompletePacket(final String sqlCommand, final long rowCount)
focal_class.identifier: PostgreSQLCommandCompletePacket
focal_class.modifiers: public
focal_class.parameters: (final String sqlCommand, final long rowCount)
focal_class.signature:  PostgreSQLCommandCompletePacket(final String sqlCommand, final long rowCount)
focal_class.class_method_signature: PostgreSQLCommandCompletePacket.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.writeStringNul(sqlCommand + " " + rowCount);
      }
focal_method.class_method_signature: PostgreSQLCommandCompletePacket.write(final PostgreSQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final PostgreSQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeStringNul
focal_method.modifiers: @Override public
focal_method.parameters: (final PostgreSQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final PostgreSQLPacketPayload payload)