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 22a6af9f0c1 Add more test cases on MySQLComResetConnectionPacketTest
(#38185)
22a6af9f0c1 is described below
commit 22a6af9f0c1397380fa9f87c5ddbbcf2704190d1
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Feb 25 01:00:15 2026 +0800
Add more test cases on MySQLComResetConnectionPacketTest (#38185)
---
.../admin/MySQLComResetConnectionPacketTest.java | 40 ++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git
a/database/protocol/dialect/mysql/src/test/java/org/apache/shardingsphere/database/protocol/mysql/packet/command/admin/MySQLComResetConnectionPacketTest.java
b/database/protocol/dialect/mysql/src/test/java/org/apache/shardingsphere/database/protocol/mysql/packet/command/admin/MySQLComResetConnectionPacketTest.java
new file mode 100644
index 00000000000..e526ccfe861
--- /dev/null
+++
b/database/protocol/dialect/mysql/src/test/java/org/apache/shardingsphere/database/protocol/mysql/packet/command/admin/MySQLComResetConnectionPacketTest.java
@@ -0,0 +1,40 @@
+/*
+ * 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.database.protocol.mysql.packet.command.admin;
+
+import
org.apache.shardingsphere.database.protocol.mysql.packet.command.MySQLCommandPacketType;
+import
org.apache.shardingsphere.database.protocol.mysql.payload.MySQLPacketPayload;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.mockito.Mock;
+import org.mockito.junit.jupiter.MockitoExtension;
+
+import static org.mockito.Mockito.verify;
+
+@ExtendWith(MockitoExtension.class)
+class MySQLComResetConnectionPacketTest {
+
+ @Mock
+ private MySQLPacketPayload payload;
+
+ @Test
+ void assertWrite() {
+ new MySQLComResetConnectionPacket().write(payload);
+
verify(payload).writeInt1(MySQLCommandPacketType.COM_RESET_CONNECTION.getValue());
+ }
+}