test_class.declarator: SCHEMA_PATTERN = "schema_%s"
test_class.modifier: private static final
test_class.original_string: private static final String SCHEMA_PATTERN = "schema_%s";
test_class.type: String
test_class.var_name: SCHEMA_PATTERN
test_class.declarator: backendConnection
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private BackendConnection backendConnection;
test_class.type: BackendConnection
test_class.var_name: backendConnection
test_class.declarator: databaseCommunicationEngineFactory
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DatabaseCommunicationEngineFactory databaseCommunicationEngineFactory;
test_class.type: DatabaseCommunicationEngineFactory
test_class.var_name: databaseCommunicationEngineFactory
test_class.declarator: databaseCommunicationEngine
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DatabaseCommunicationEngine databaseCommunicationEngine;
test_class.type: DatabaseCommunicationEngine
test_class.var_name: databaseCommunicationEngine
test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/BroadcastBackendHandlerTest.java
test_class.identifier: BroadcastBackendHandlerTest
test_case.body: @Test
      public void assertExecuteSuccess() throws SQLException {
          mockDatabaseCommunicationEngine(new UpdateResponse());
          BroadcastBackendHandler broadcastBackendHandler = new BroadcastBackendHandler("SET timeout = 1000", mock(SQLStatement.class), backendConnection);
          setBackendHandlerFactory(broadcastBackendHandler);
          BackendResponse actual = broadcastBackendHandler.execute();
          assertThat(actual, instanceOf(UpdateResponse.class));
          assertThat(((UpdateResponse) actual).getUpdateCount(), is(0L));
          assertThat(((UpdateResponse) actual).getLastInsertId(), is(0L));
          verify(databaseCommunicationEngine, times(10)).execute();
      }
test_case.class_method_signature: BroadcastBackendHandlerTest.assertExecuteSuccess()
test_case.full_signature: @Test public void assertExecuteSuccess()
test_case.identifier: assertExecuteSuccess
test_case.invocations: mockDatabaseCommunicationEngine mock setBackendHandlerFactory execute assertThat instanceOf assertThat getUpdateCount is assertThat getLastInsertId is execute verify times
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertExecuteSuccess()
focal_class.declarator: databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance()
focal_class.modifier: private final
focal_class.original_string: private final DatabaseCommunicationEngineFactory databaseCommunicationEngineFactory = DatabaseCommunicationEngineFactory.getInstance();
focal_class.type: DatabaseCommunicationEngineFactory
focal_class.var_name: databaseCommunicationEngineFactory
focal_class.declarator: sql
focal_class.modifier: private final
focal_class.original_string: private final String sql;
focal_class.type: String
focal_class.var_name: sql
focal_class.declarator: sqlStatement
focal_class.modifier: private final
focal_class.original_string: private final SQLStatement sqlStatement;
focal_class.type: SQLStatement
focal_class.var_name: sqlStatement
focal_class.declarator: backendConnection
focal_class.modifier: private final
focal_class.original_string: private final BackendConnection backendConnection;
focal_class.type: BackendConnection
focal_class.var_name: backendConnection
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/admin/BroadcastBackendHandler.java
focal_class.identifier: BroadcastBackendHandler
focal_class.interfaces: implements TextProtocolBackendHandler
focal_class.class_method_signature: BroadcastBackendHandler.execute()
focal_class.full_signature: @Override public BackendResponse execute()
focal_class.identifier: execute
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: BackendResponse
focal_class.signature: BackendResponse execute()
focal_class.class_method_signature: BroadcastBackendHandler.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: BroadcastBackendHandler.getQueryData()
focal_class.full_signature: @Override public QueryData getQueryData()
focal_class.identifier: getQueryData
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: QueryData
focal_class.signature: QueryData getQueryData()
focal_method.body: @Override
      public BackendResponse execute() throws SQLException {
          String originalSchema = backendConnection.getSchemaName();
          for (String each : ProxyContext.getInstance().getAllSchemaNames()) {
              backendConnection.setCurrentSchema(each);
              if (!ProxyContext.getInstance().getSchema(each).isComplete()) {
                  throw new RuleNotExistsException();
              }
              databaseCommunicationEngineFactory.newTextProtocolInstance(sqlStatement, sql, backendConnection).execute();
          }
          backendConnection.setCurrentSchema(originalSchema);
          return new UpdateResponse();
      }
focal_method.class_method_signature: BroadcastBackendHandler.execute()
focal_method.full_signature: @Override public BackendResponse execute()
focal_method.identifier: execute
focal_method.invocations: getSchemaName getAllSchemaNames getInstance setCurrentSchema isComplete getSchema getInstance execute newTextProtocolInstance setCurrentSchema
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: BackendResponse
focal_method.signature: BackendResponse execute()