From f610446666899dc994b3b4a07cbfbdb7ea64615c Mon Sep 17 00:00:00 2001 From: duanzhengqiang Date: Tue, 17 Dec 2024 14:11:45 +0800 Subject: [PATCH] move test logic to test package --- .../apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java | 2 +- .../shardingsphere/test/it/sql/binder/SQLBinderITSettings.java | 0 .../cases/binder/registry/SQLBinderTestCasesRegistry.java | 0 .../sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java | 0 .../test/it/sql/binder/{it => dialect}/mysql/MySQLBinderIT.java | 2 +- .../it/binder/src/{main => test}/resources/cases/dml/select.xml | 0 test/it/binder/src/{main => test}/resources/sqls/dml/select.xml | 0 7 files changed, 2 insertions(+), 2 deletions(-) rename test/it/binder/src/{main => test}/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java (99%) rename test/it/binder/src/{main => test}/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderITSettings.java (100%) rename test/it/binder/src/{main => test}/java/org/apache/shardingsphere/test/it/sql/binder/cases/binder/registry/SQLBinderTestCasesRegistry.java (100%) rename test/it/binder/src/{main => test}/java/org/apache/shardingsphere/test/it/sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java (100%) rename test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/{it => dialect}/mysql/MySQLBinderIT.java (93%) rename test/it/binder/src/{main => test}/resources/cases/dml/select.xml (100%) rename test/it/binder/src/{main => test}/resources/sqls/dml/select.xml (100%) diff --git a/test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java similarity index 99% rename from test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java rename to test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java index 5a79da50fc15f..657bc809b5384 100644 --- a/test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java +++ b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderIT.java @@ -166,7 +166,7 @@ private static class TestCaseArgumentsProvider implements ArgumentsProvider { @Override public Stream provideArguments(final ExtensionContext extensionContext) { SQLBinderITSettings settings = extensionContext.getRequiredTestClass().getAnnotation(SQLBinderITSettings.class); - Preconditions.checkNotNull(settings, "Annotation InternalSQLParserITSettings is required."); + Preconditions.checkNotNull(settings, "Annotation SQLBinderITSettings is required."); return getTestParameters(settings.value()).stream(); } diff --git a/test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderITSettings.java b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderITSettings.java similarity index 100% rename from test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderITSettings.java rename to test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/SQLBinderITSettings.java diff --git a/test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/cases/binder/registry/SQLBinderTestCasesRegistry.java b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/cases/binder/registry/SQLBinderTestCasesRegistry.java similarity index 100% rename from test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/cases/binder/registry/SQLBinderTestCasesRegistry.java rename to test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/cases/binder/registry/SQLBinderTestCasesRegistry.java diff --git a/test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java similarity index 100% rename from test/it/binder/src/main/java/org/apache/shardingsphere/test/it/sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java rename to test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/cases/sql/registry/SQLBinderCasesRegistry.java diff --git a/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/it/mysql/MySQLBinderIT.java b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/mysql/MySQLBinderIT.java similarity index 93% rename from test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/it/mysql/MySQLBinderIT.java rename to test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/mysql/MySQLBinderIT.java index 54340c747caf0..1b5cbdf70b0af 100644 --- a/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/it/mysql/MySQLBinderIT.java +++ b/test/it/binder/src/test/java/org/apache/shardingsphere/test/it/sql/binder/dialect/mysql/MySQLBinderIT.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.shardingsphere.test.it.sql.binder.it.mysql; +package org.apache.shardingsphere.test.it.sql.binder.dialect.mysql; import org.apache.shardingsphere.test.it.sql.binder.SQLBinderIT; import org.apache.shardingsphere.test.it.sql.binder.SQLBinderITSettings; diff --git a/test/it/binder/src/main/resources/cases/dml/select.xml b/test/it/binder/src/test/resources/cases/dml/select.xml similarity index 100% rename from test/it/binder/src/main/resources/cases/dml/select.xml rename to test/it/binder/src/test/resources/cases/dml/select.xml diff --git a/test/it/binder/src/main/resources/sqls/dml/select.xml b/test/it/binder/src/test/resources/sqls/dml/select.xml similarity index 100% rename from test/it/binder/src/main/resources/sqls/dml/select.xml rename to test/it/binder/src/test/resources/sqls/dml/select.xml