test_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/DALBackendHandlerFactoryTest.java
test_class.identifier: DALBackendHandlerFactoryTest
test_case.body: @Test
      public void assertUnicastBackendHandlerReturnedWhenOtherDALStatement() {
          DALStatement dalStatement = mock(DALStatement.class);
          BackendConnection backendConnection = mock(BackendConnection.class);
          TextProtocolBackendHandler textProtocolBackendHandler = DALBackendHandlerFactory.newInstance("", dalStatement, backendConnection);
          assertThat(textProtocolBackendHandler, instanceOf(UnicastBackendHandler.class));
          UnicastBackendHandler unicastBackendHandler = (UnicastBackendHandler) textProtocolBackendHandler;
          assertFieldOfInstance(unicastBackendHandler, "sqlStatement", is(dalStatement));
          assertFieldOfInstance(unicastBackendHandler, "sql", is(""));
          assertFieldOfInstance(unicastBackendHandler, "backendConnection", is(backendConnection));
      }
test_case.class_method_signature: DALBackendHandlerFactoryTest.assertUnicastBackendHandlerReturnedWhenOtherDALStatement()
test_case.full_signature: @Test public void assertUnicastBackendHandlerReturnedWhenOtherDALStatement()
test_case.identifier: assertUnicastBackendHandlerReturnedWhenOtherDALStatement
test_case.invocations: mock mock newInstance assertThat instanceOf assertFieldOfInstance is assertFieldOfInstance is assertFieldOfInstance is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertUnicastBackendHandlerReturnedWhenOtherDALStatement()
focal_class.file: shardingsphere-proxy/shardingsphere-proxy-backend/src/main/java/org/apache/shardingsphere/proxy/backend/text/admin/DALBackendHandlerFactory.java
focal_class.identifier: DALBackendHandlerFactory
focal_class.class_method_signature: DALBackendHandlerFactory.newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_class.full_signature: public static TextProtocolBackendHandler newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_class.identifier: newInstance
focal_class.modifiers: public static
focal_class.parameters: (final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_class.return: TextProtocolBackendHandler
focal_class.signature: TextProtocolBackendHandler newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_method.body: public static TextProtocolBackendHandler newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection) {
          if (dalStatement instanceof MySQLUseStatement) {
              return new UseDatabaseBackendHandler((MySQLUseStatement) dalStatement, backendConnection);
          }
          if (dalStatement instanceof MySQLShowDatabasesStatement) {
              return new ShowDatabasesBackendHandler(backendConnection);
          }
          if (dalStatement instanceof MySQLShowTablesStatement) {
              return new ShowTablesBackendHandler(sql, dalStatement, backendConnection);
          }
          if (dalStatement instanceof SetStatement) {
              return new BroadcastBackendHandler(sql, dalStatement, backendConnection);
          }
          return new UnicastBackendHandler(sql, dalStatement, backendConnection);
      }
focal_method.class_method_signature: DALBackendHandlerFactory.newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_method.full_signature: public static TextProtocolBackendHandler newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_method.identifier: newInstance
focal_method.modifiers: public static
focal_method.parameters: (final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)
focal_method.return: TextProtocolBackendHandler
focal_method.signature: TextProtocolBackendHandler newInstance(final String sql, final DALStatement dalStatement, final BackendConnection backendConnection)