test_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/builder/ResponsePacketBuilderTest.java
test_class.identifier: ResponsePacketBuilderTest
test_case.body: @Test
      public void assertBuildUpdateResponsePackets() {
          UpdateResponse updateResponse = mock(UpdateResponse.class);
          when(updateResponse.getUpdateCount()).thenReturn(10L);
          when(updateResponse.getLastInsertId()).thenReturn(100L);
          Collection<DatabasePacket<?>> actual = ResponsePacketBuilder.buildUpdateResponsePackets(updateResponse);
          MySQLOKPacket actualItem = (MySQLOKPacket) actual.stream().findAny().get();
          assertThat(actualItem, instanceOf(MySQLOKPacket.class));
          assertThat(actualItem.getAffectedRows(), is(10L));
          assertThat(actualItem.getLastInsertId(), is(100L));
      }
test_case.class_method_signature: ResponsePacketBuilderTest.assertBuildUpdateResponsePackets()
test_case.full_signature: @Test public void assertBuildUpdateResponsePackets()
test_case.identifier: assertBuildUpdateResponsePackets
test_case.invocations: mock thenReturn when getUpdateCount thenReturn when getLastInsertId buildUpdateResponsePackets get findAny stream assertThat instanceOf assertThat getAffectedRows is assertThat getLastInsertId is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuildUpdateResponsePackets()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/builder/ResponsePacketBuilder.java
focal_class.identifier: ResponsePacketBuilder
focal_class.class_method_signature: ResponsePacketBuilder.buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.full_signature: public static Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.identifier: buildQueryResponsePackets
focal_class.modifiers: public static
focal_class.parameters: (final QueryResponse queryResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> buildQueryResponsePackets(final QueryResponse queryResponse)
focal_class.class_method_signature: ResponsePacketBuilder.getColumnFieldDetailFlag(final QueryHeader header)
focal_class.full_signature: private static int getColumnFieldDetailFlag(final QueryHeader header)
focal_class.identifier: getColumnFieldDetailFlag
focal_class.modifiers: private static
focal_class.parameters: (final QueryHeader header)
focal_class.return: int
focal_class.signature: int getColumnFieldDetailFlag(final QueryHeader header)
focal_class.class_method_signature: ResponsePacketBuilder.buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_class.full_signature: public static Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_class.identifier: buildUpdateResponsePackets
focal_class.modifiers: public static
focal_class.parameters: (final UpdateResponse updateResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_method.body: public static Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse) {
          return Collections.singletonList(new MySQLOKPacket(1, updateResponse.getUpdateCount(), updateResponse.getLastInsertId()));
      }
focal_method.class_method_signature: ResponsePacketBuilder.buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_method.full_signature: public static Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)
focal_method.identifier: buildUpdateResponsePackets
focal_method.invocations: singletonList getUpdateCount getLastInsertId
focal_method.modifiers: public static
focal_method.parameters: (final UpdateResponse updateResponse)
focal_method.return: Collection<DatabasePacket<?>>
focal_method.signature: Collection<DatabasePacket<?>> buildUpdateResponsePackets(final UpdateResponse updateResponse)