test_class.declarator: textProtocolBackendHandler
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private TextProtocolBackendHandler textProtocolBackendHandler;
test_class.type: TextProtocolBackendHandler
test_class.var_name: textProtocolBackendHandler
test_class.declarator: mysqlComQueryPacketExecutor = new MySQLComQueryPacketExecutor(mock(MySQLComQueryPacket.class), null)
test_class.modifier: private final
test_class.original_string: private final MySQLComQueryPacketExecutor mysqlComQueryPacketExecutor = new MySQLComQueryPacketExecutor(mock(MySQLComQueryPacket.class), null);
test_class.type: MySQLComQueryPacketExecutor
test_class.var_name: mysqlComQueryPacketExecutor
test_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/text/query/MySQLComQueryPacketExecutorTest.java
test_class.identifier: MySQLComQueryPacketExecutorTest
test_case.body: @Test
      public void assertIsQueryResponse() throws SQLException, NoSuchFieldException {
          FieldSetter.setField(mysqlComQueryPacketExecutor, MySQLComQueryPacketExecutor.class.getDeclaredField("textProtocolBackendHandler"), textProtocolBackendHandler);
          when(textProtocolBackendHandler.execute()).thenReturn(new QueryResponse(Collections.singletonList(mock(QueryHeader.class))));
          mysqlComQueryPacketExecutor.execute();
          assertThat(mysqlComQueryPacketExecutor.getResponseType(), is(ResponseType.QUERY));
      }
test_case.class_method_signature: MySQLComQueryPacketExecutorTest.assertIsQueryResponse()
test_case.full_signature: @Test public void assertIsQueryResponse()
test_case.identifier: assertIsQueryResponse
test_case.invocations: setField getDeclaredField thenReturn when execute singletonList mock execute assertThat getResponseType is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertIsQueryResponse()
focal_class.declarator: textProtocolBackendHandler
focal_class.modifier: private final
focal_class.original_string: private final TextProtocolBackendHandler textProtocolBackendHandler;
focal_class.type: TextProtocolBackendHandler
focal_class.var_name: textProtocolBackendHandler
focal_class.declarator: responseType
focal_class.modifier: @Getter
      private volatile
focal_class.original_string: @Getter
      private volatile ResponseType responseType;
focal_class.type: ResponseType
focal_class.var_name: responseType
focal_class.declarator: currentSequenceId
focal_class.modifier: private
focal_class.original_string: private int currentSequenceId;
focal_class.type: int
focal_class.var_name: currentSequenceId
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/main/java/org/apache/shardingsphere/proxy/frontend/mysql/command/query/text/query/MySQLComQueryPacketExecutor.java
focal_class.identifier: MySQLComQueryPacketExecutor
focal_class.interfaces: implements QueryCommandExecutor
focal_class.class_method_signature: MySQLComQueryPacketExecutor.MySQLComQueryPacketExecutor(final MySQLComQueryPacket packet, final BackendConnection backendConnection)
focal_class.full_signature: public  MySQLComQueryPacketExecutor(final MySQLComQueryPacket packet, final BackendConnection backendConnection)
focal_class.identifier: MySQLComQueryPacketExecutor
focal_class.modifiers: public
focal_class.parameters: (final MySQLComQueryPacket packet, final BackendConnection backendConnection)
focal_class.signature:  MySQLComQueryPacketExecutor(final MySQLComQueryPacket packet, final BackendConnection backendConnection)
focal_class.class_method_signature: MySQLComQueryPacketExecutor.execute()
focal_class.full_signature: @Override public Collection<DatabasePacket<?>> execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> execute()
focal_class.class_method_signature: MySQLComQueryPacketExecutor.processQuery(final QueryResponse queryResponse)
focal_class.full_signature: private Collection<DatabasePacket<?>> processQuery(final QueryResponse queryResponse)
focal_class.identifier: processQuery
focal_class.modifiers: private
focal_class.parameters: (final QueryResponse queryResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> processQuery(final QueryResponse queryResponse)
focal_class.class_method_signature: MySQLComQueryPacketExecutor.processUpdate(final UpdateResponse updateResponse)
focal_class.full_signature: private Collection<DatabasePacket<?>> processUpdate(final UpdateResponse updateResponse)
focal_class.identifier: processUpdate
focal_class.modifiers: private
focal_class.parameters: (final UpdateResponse updateResponse)
focal_class.return: Collection<DatabasePacket<?>>
focal_class.signature: Collection<DatabasePacket<?>> processUpdate(final UpdateResponse updateResponse)
focal_class.class_method_signature: MySQLComQueryPacketExecutor.next()
focal_class.full_signature: @Override public boolean next()
focal_class.identifier: next
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean next()
focal_class.class_method_signature: MySQLComQueryPacketExecutor.getQueryData()
focal_class.full_signature: @Override public MySQLPacket getQueryData()
focal_class.identifier: getQueryData
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MySQLPacket
focal_class.signature: MySQLPacket getQueryData()
focal_method.body: @Override
      public Collection<DatabasePacket<?>> execute() throws SQLException {
          if (ProxyContext.getInstance().getSchemaContexts().isCircuitBreak()) {
              throw new CircuitBreakException();
          }
          BackendResponse backendResponse = textProtocolBackendHandler.execute();
          return backendResponse instanceof QueryResponse ? processQuery((QueryResponse) backendResponse) : processUpdate((UpdateResponse) backendResponse);
      }
focal_method.class_method_signature: MySQLComQueryPacketExecutor.execute()
focal_method.full_signature: @Override public Collection<DatabasePacket<?>> execute()
focal_method.identifier: execute
focal_method.invocations: isCircuitBreak getSchemaContexts getInstance execute processQuery processUpdate
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Collection<DatabasePacket<?>>
focal_method.signature: Collection<DatabasePacket<?>> execute()