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 b5fca38c509 Refactor test package of database module (#37499)
b5fca38c509 is described below

commit b5fca38c509df6eebce8dbe309ce82fdf9a99d25
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Dec 25 01:11:26 2025 +0800

    Refactor test package of database module (#37499)
---
 ...tionTest.java => OpenGaussDriverQuerySystemCatalogOptionTest.java} | 2 +-
 .../postgresql/{ => mapper}/PostgreSQLDialectExceptionMapperTest.java | 3 +--
 .../{packet/command => }/codec/OpenGaussPacketCodecEngineTest.java    | 3 +--
 .../authentication/OpenGaussAuthenticationHexDataTest.java            | 3 +--
 .../authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java  | 4 +---
 .../{packet/command => }/OpenGaussCommandPacketFactoryTest.java       | 4 +---
 .../command/{packet/command => }/OpenGaussCommandPacketTypeTest.java  | 3 +--
 7 files changed, 7 insertions(+), 15 deletions(-)

diff --git 
a/database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussSystemTableOptionTest.java
 
b/database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussDriverQuerySystemCatalogOptionTest.java
similarity index 97%
rename from 
database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussSystemTableOptionTest.java
rename to 
database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussDriverQuerySystemCatalogOptionTest.java
index c2cfbebac0e..065ceb7c683 100644
--- 
a/database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussSystemTableOptionTest.java
+++ 
b/database/connector/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/connector/opengauss/metadata/database/option/OpenGaussDriverQuerySystemCatalogOptionTest.java
@@ -22,7 +22,7 @@ import org.junit.jupiter.api.Test;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
-class OpenGaussSystemTableOptionTest {
+class OpenGaussDriverQuerySystemCatalogOptionTest {
     
     @Test
     void assertIsSystemCatalogQueryExpressions() {
diff --git 
a/database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/PostgreSQLDialectExceptionMapperTest.java
 
b/database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/mapper/PostgreSQLDialectExceptionMapperTest.java
similarity index 94%
rename from 
database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/PostgreSQLDialectExceptionMapperTest.java
rename to 
database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/mapper/PostgreSQLDialectExceptionMapperTest.java
index eea64749bc4..c952d7085ef 100644
--- 
a/database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/PostgreSQLDialectExceptionMapperTest.java
+++ 
b/database/exception/dialect/postgresql/src/test/java/org/apache/shardingsphere/database/exception/postgresql/mapper/PostgreSQLDialectExceptionMapperTest.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.database.exception.postgresql;
+package org.apache.shardingsphere.database.exception.postgresql.mapper;
 
 import 
org.apache.shardingsphere.database.exception.core.exception.SQLDialectException;
 import 
org.apache.shardingsphere.database.exception.core.exception.connection.TooManyConnectionsException;
@@ -23,7 +23,6 @@ import 
org.apache.shardingsphere.database.exception.core.exception.data.InsertCo
 import 
org.apache.shardingsphere.database.exception.core.exception.data.InvalidParameterValueException;
 import 
org.apache.shardingsphere.database.exception.core.exception.syntax.database.DatabaseCreateExistsException;
 import 
org.apache.shardingsphere.database.exception.core.exception.transaction.InTransactionException;
-import 
org.apache.shardingsphere.database.exception.postgresql.mapper.PostgreSQLDialectExceptionMapper;
 import org.junit.jupiter.api.extension.ExtensionContext;
 import org.junit.jupiter.params.ParameterizedTest;
 import org.junit.jupiter.params.provider.Arguments;
diff --git 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/codec/OpenGaussPacketCodecEngineTest.java
 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/codec/OpenGaussPacketCodecEngineTest.java
similarity index 96%
rename from 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/codec/OpenGaussPacketCodecEngineTest.java
rename to 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/codec/OpenGaussPacketCodecEngineTest.java
index 5618443abf6..1df1add8316 100644
--- 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/codec/OpenGaussPacketCodecEngineTest.java
+++ 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/codec/OpenGaussPacketCodecEngineTest.java
@@ -15,12 +15,11 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.codec;
+package org.apache.shardingsphere.database.protocol.opengauss.codec;
 
 import io.netty.buffer.ByteBuf;
 import io.netty.channel.ChannelHandlerContext;
 import io.netty.util.AttributeKey;
-import 
org.apache.shardingsphere.database.protocol.opengauss.codec.OpenGaussPacketCodecEngine;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.PostgreSQLPacket;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.identifier.PostgreSQLIdentifierPacket;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.identifier.PostgreSQLMessagePacketType;
diff --git 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationHexDataTest.java
 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationHexDataTest.java
similarity index 89%
rename from 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationHexDataTest.java
rename to 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationHexDataTest.java
index 51ea07c87f1..6a47a098722 100644
--- 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationHexDataTest.java
+++ 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationHexDataTest.java
@@ -15,9 +15,8 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.packet.authentication;
+package 
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication;
 
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationHexData;
 import org.junit.jupiter.api.Test;
 
 import static org.hamcrest.CoreMatchers.is;
diff --git 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
similarity index 92%
rename from 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
rename to 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
index a32ea5ea35d..9f7839f1006 100644
--- 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
+++ 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/authentication/OpenGaussAuthenticationSCRAMSha256PacketTest.java
@@ -15,11 +15,9 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.packet.authentication;
+package 
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication;
 
 import 
org.apache.shardingsphere.database.protocol.opengauss.constant.OpenGaussProtocolVersion;
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationHexData;
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.authentication.OpenGaussAuthenticationSCRAMSha256Packet;
 import 
org.apache.shardingsphere.database.protocol.postgresql.payload.PostgreSQLPacketPayload;
 import org.junit.jupiter.api.Test;
 
diff --git 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketFactoryTest.java
 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketFactoryTest.java
similarity index 90%
rename from 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketFactoryTest.java
rename to 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketFactoryTest.java
index 11af95cc3d0..64b17d91c9e 100644
--- 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketFactoryTest.java
+++ 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketFactoryTest.java
@@ -15,11 +15,9 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.packet.command;
+package org.apache.shardingsphere.database.protocol.opengauss.packet.command;
 
 import io.netty.buffer.ByteBuf;
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.OpenGaussCommandPacketFactory;
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.OpenGaussCommandPacketType;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.command.PostgreSQLCommandPacket;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.command.PostgreSQLCommandPacketType;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.command.query.extended.PostgreSQLAggregatedCommandPacket;
diff --git 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketTypeTest.java
 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketTypeTest.java
similarity index 92%
rename from 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketTypeTest.java
rename to 
database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketTypeTest.java
index 3dbb08639e9..4ecd57010c5 100644
--- 
a/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/packet/command/OpenGaussCommandPacketTypeTest.java
+++ 
b/database/protocol/dialect/opengauss/src/test/java/org/apache/shardingsphere/database/protocol/opengauss/packet/command/OpenGaussCommandPacketTypeTest.java
@@ -15,9 +15,8 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.packet.command;
+package org.apache.shardingsphere.database.protocol.opengauss.packet.command;
 
-import 
org.apache.shardingsphere.database.protocol.opengauss.packet.command.OpenGaussCommandPacketType;
 import 
org.apache.shardingsphere.database.protocol.packet.command.CommandPacketType;
 import 
org.apache.shardingsphere.database.protocol.postgresql.packet.command.PostgreSQLCommandPacketType;
 import org.junit.jupiter.api.Test;

Reply via email to