You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2022/09/07 04:49:26 UTC
[shardingsphere] branch master updated: Add more unit test for DropSchemaStatementHandler (#20758)
This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 ce56fcef709 Add more unit test for DropSchemaStatementHandler (#20758)
ce56fcef709 is described below
commit ce56fcef7093d76793555fd73b93e28c3786b383
Author: Da Xiang Huang <lo...@foxmail.com>
AuthorDate: Wed Sep 7 12:49:16 2022 +0800
Add more unit test for DropSchemaStatementHandler (#20758)
---
.../sql/dialect/handler/ddl/DropSchemaStatementHandlerTest.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/DropSchemaStatementHandlerTest.java b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/DropSchemaStatementHandlerTest.java
index 6a8a849d28f..75656c28b58 100644
--- a/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/DropSchemaStatementHandlerTest.java
+++ b/shardingsphere-sql-parser/shardingsphere-sql-parser-statement/src/test/java/org/apache/shardingsphere/sql/parser/sql/dialect/handler/ddl/DropSchemaStatementHandlerTest.java
@@ -19,8 +19,10 @@ package org.apache.shardingsphere.sql.parser.sql.dialect.handler.ddl;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.opengauss.ddl.OpenGaussDropSchemaStatement;
import org.apache.shardingsphere.sql.parser.sql.dialect.statement.postgresql.ddl.PostgreSQLDropSchemaStatement;
+import org.apache.shardingsphere.sql.parser.sql.dialect.statement.sqlserver.ddl.SQLServerDropSchemaStatement;
import org.junit.Test;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public final class DropSchemaStatementHandlerTest {
@@ -38,4 +40,10 @@ public final class DropSchemaStatementHandlerTest {
dropSchemaStatement.setContainsCascade(true);
assertTrue(DropSchemaStatementHandler.containsCascade(dropSchemaStatement));
}
+
+ @Test
+ public void assertIsContainsCascadeForSQLServer() {
+ SQLServerDropSchemaStatement dropSchemaStatement = new SQLServerDropSchemaStatement();
+ assertFalse(DropSchemaStatementHandler.containsCascade(dropSchemaStatement));
+ }
}