This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new e83baa08205 Remove useless 
SetDistVariableUpdatableRALProxyBackendHandlerTest (#36808)
e83baa08205 is described below

commit e83baa082054b6fe4f8b3fca2fe0d7c7bfa4a3f1
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 7 16:38:35 2025 +0800

    Remove useless SetDistVariableUpdatableRALProxyBackendHandlerTest (#36808)
---
 ...ariableUpdatableRALProxyBackendHandlerTest.java | 54 ----------------------
 1 file changed, 54 deletions(-)

diff --git 
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableUpdatableRALProxyBackendHandlerTest.java
 
b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableUpdatableRALProxyBackendHandlerTest.java
deleted file mode 100644
index 8125b86d784..00000000000
--- 
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/variable/SetDistVariableUpdatableRALProxyBackendHandlerTest.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package 
org.apache.shardingsphere.proxy.backend.handler.distsql.ral.updatable.variable;
-
-import io.netty.util.DefaultAttributeMap;
-import 
org.apache.shardingsphere.distsql.statement.type.ral.updatable.SetDistVariableStatement;
-import 
org.apache.shardingsphere.infra.exception.kernel.syntax.UnsupportedVariableException;
-import org.apache.shardingsphere.proxy.backend.context.ProxyContext;
-import 
org.apache.shardingsphere.proxy.backend.handler.distsql.DistSQLUpdateProxyBackendHandler;
-import org.apache.shardingsphere.proxy.backend.session.ConnectionSession;
-import org.apache.shardingsphere.test.infra.framework.mock.AutoMockExtension;
-import org.apache.shardingsphere.test.infra.framework.mock.StaticMockSettings;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
-import org.junit.jupiter.api.extension.ExtendWith;
-
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-@ExtendWith(AutoMockExtension.class)
-@StaticMockSettings(ProxyContext.class)
-class SetDistVariableUpdatableRALProxyBackendHandlerTest {
-    
-    private ConnectionSession connectionSession;
-    
-    @BeforeEach
-    void setUp() {
-        when(ProxyContext.getInstance()).thenReturn(mock(ProxyContext.class, 
RETURNS_DEEP_STUBS));
-        connectionSession = new ConnectionSession(mock(), new 
DefaultAttributeMap());
-    }
-    
-    @Test
-    void assertNotSupportedVariable() {
-        DistSQLUpdateProxyBackendHandler handler = new 
DistSQLUpdateProxyBackendHandler(new SetDistVariableStatement("unsupported", 
"XXX"), connectionSession);
-        assertThrows(UnsupportedVariableException.class, handler::execute);
-    }
-}

Reply via email to