test_class.declarator: packetPayload
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private MySQLPacketPayload packetPayload;
test_class.type: MySQLPacketPayload
test_class.var_name: packetPayload
test_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/test/java/org/apache/shardingsphere/db/protocol/mysql/packet/generic/MySQLOKPacketTest.java
test_class.identifier: MySQLOKPacketTest
test_case.body: @Test
      public void assertWrite() {
          new MySQLOKPacket(1, 100L, 9999L).write(packetPayload);
          verify(packetPayload).writeInt1(MySQLOKPacket.HEADER);
          verify(packetPayload).writeIntLenenc(100L);
          verify(packetPayload).writeIntLenenc(9999L);
          verify(packetPayload).writeInt2(MySQLStatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue());
          verify(packetPayload).writeInt2(0);
          verify(packetPayload).writeStringEOF("");
      }
test_case.class_method_signature: MySQLOKPacketTest.assertWrite()
test_case.full_signature: @Test public void assertWrite()
test_case.identifier: assertWrite
test_case.invocations: write writeInt1 verify writeIntLenenc verify writeIntLenenc verify writeInt2 verify getValue writeInt2 verify writeStringEOF verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertWrite()
focal_class.declarator: HEADER = 0x00
focal_class.modifier: public static final
focal_class.original_string: public static final int HEADER = 0x00;
focal_class.type: int
focal_class.var_name: HEADER
focal_class.declarator: DEFAULT_STATUS_FLAG = MySQLStatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue()
focal_class.modifier: private static final
focal_class.original_string: private static final int DEFAULT_STATUS_FLAG = MySQLStatusFlag.SERVER_STATUS_AUTOCOMMIT.getValue();
focal_class.type: int
focal_class.var_name: DEFAULT_STATUS_FLAG
focal_class.declarator: sequenceId
focal_class.modifier: private final
focal_class.original_string: private final int sequenceId;
focal_class.type: int
focal_class.var_name: sequenceId
focal_class.declarator: affectedRows
focal_class.modifier: private final
focal_class.original_string: private final long affectedRows;
focal_class.type: long
focal_class.var_name: affectedRows
focal_class.declarator: lastInsertId
focal_class.modifier: private final
focal_class.original_string: private final long lastInsertId;
focal_class.type: long
focal_class.var_name: lastInsertId
focal_class.declarator: statusFlag
focal_class.modifier: private final
focal_class.original_string: private final int statusFlag;
focal_class.type: int
focal_class.var_name: statusFlag
focal_class.declarator: warnings
focal_class.modifier: private final
focal_class.original_string: private final int warnings;
focal_class.type: int
focal_class.var_name: warnings
focal_class.declarator: info
focal_class.modifier: private final
focal_class.original_string: private final String info;
focal_class.type: String
focal_class.var_name: info
focal_class.file: shardingsphere-db-protocol/shardingsphere-db-protocol-mysql/src/main/java/org/apache/shardingsphere/db/protocol/mysql/packet/generic/MySQLOKPacket.java
focal_class.identifier: MySQLOKPacket
focal_class.interfaces: implements MySQLPacket
focal_class.class_method_signature: MySQLOKPacket.MySQLOKPacket(final int sequenceId)
focal_class.full_signature: public  MySQLOKPacket(final int sequenceId)
focal_class.identifier: MySQLOKPacket
focal_class.modifiers: public
focal_class.parameters: (final int sequenceId)
focal_class.signature:  MySQLOKPacket(final int sequenceId)
focal_class.class_method_signature: MySQLOKPacket.MySQLOKPacket(final int sequenceId, final long affectedRows, final long lastInsertId)
focal_class.full_signature: public  MySQLOKPacket(final int sequenceId, final long affectedRows, final long lastInsertId)
focal_class.identifier: MySQLOKPacket
focal_class.modifiers: public
focal_class.parameters: (final int sequenceId, final long affectedRows, final long lastInsertId)
focal_class.signature:  MySQLOKPacket(final int sequenceId, final long affectedRows, final long lastInsertId)
focal_class.class_method_signature: MySQLOKPacket.MySQLOKPacket(final MySQLPacketPayload payload)
focal_class.full_signature: public  MySQLOKPacket(final MySQLPacketPayload payload)
focal_class.identifier: MySQLOKPacket
focal_class.modifiers: public
focal_class.parameters: (final MySQLPacketPayload payload)
focal_class.signature:  MySQLOKPacket(final MySQLPacketPayload payload)
focal_class.class_method_signature: MySQLOKPacket.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.writeInt1(HEADER);
          payload.writeIntLenenc(affectedRows);
          payload.writeIntLenenc(lastInsertId);
          payload.writeInt2(statusFlag);
          payload.writeInt2(warnings);
          payload.writeStringEOF(info);
      }
focal_method.class_method_signature: MySQLOKPacket.write(final MySQLPacketPayload payload)
focal_method.full_signature: @Override public void write(final MySQLPacketPayload payload)
focal_method.identifier: write
focal_method.invocations: writeInt1 writeIntLenenc writeIntLenenc writeInt2 writeInt2 writeStringEOF
focal_method.modifiers: @Override public
focal_method.parameters: (final MySQLPacketPayload payload)
focal_method.return: void
focal_method.signature: void write(final MySQLPacketPayload payload)