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/11/13 11:51:50 UTC
[shardingsphere] branch master updated: Refactor UpdatableScalingRALStatementAssert (#22147)
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 d05bbc2b2c6 Refactor UpdatableScalingRALStatementAssert (#22147)
d05bbc2b2c6 is described below
commit d05bbc2b2c692cccadcd546eaf66f34e79012cc3
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Nov 13 19:51:43 2022 +0800
Refactor UpdatableScalingRALStatementAssert (#22147)
---
.../impl/migration/UpdatableScalingRALStatementAssert.java | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/asserts/statement/distsql/ral/impl/migration/UpdatableScalingRALStatementAssert.java b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/asserts/statement/distsql/ral/impl/migration/UpdatableScalingRALStatementAssert.java
index ef073cc10f2..a86bf836e58 100644
--- a/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/asserts/statement/distsql/ral/impl/migration/UpdatableScalingRALStatementAssert.java
+++ b/test/parser/src/main/java/org/apache/shardingsphere/test/sql/parser/internal/asserts/statement/distsql/ral/impl/migration/UpdatableScalingRALStatementAssert.java
@@ -79,17 +79,17 @@ public final class UpdatableScalingRALStatementAssert {
} else if (actual instanceof StartMigrationStatement) {
StartMigrationStatementAssert.assertIs(assertContext, (StartMigrationStatement) actual, (StartMigrationStatementTestCase) expected);
} else if (actual instanceof RegisterMigrationSourceStorageUnitStatement) {
- RegisterMigrationSourceStorageUnitStatementAssert.assertIs(assertContext, (RegisterMigrationSourceStorageUnitStatement) actual,
- (RegisterMigrationSourceStorageUnitStatementTestCase) expected);
+ RegisterMigrationSourceStorageUnitStatementAssert.assertIs(
+ assertContext, (RegisterMigrationSourceStorageUnitStatement) actual, (RegisterMigrationSourceStorageUnitStatementTestCase) expected);
} else if (actual instanceof UnregisterMigrationSourceStorageUnitStatement) {
- UnregisterMigrationSourceStorageUnitStatementAssert.assertIs(assertContext, (UnregisterMigrationSourceStorageUnitStatement) actual,
- (UnregisterMigrationSourceStorageUnitStatementTestCase) expected);
+ UnregisterMigrationSourceStorageUnitStatementAssert.assertIs(
+ assertContext, (UnregisterMigrationSourceStorageUnitStatement) actual, (UnregisterMigrationSourceStorageUnitStatementTestCase) expected);
} else if (actual instanceof CheckMigrationStatement) {
CheckMigrationStatementAssert.assertIs(assertContext, (CheckMigrationStatement) actual, (CheckMigrationStatementTestCase) expected);
- } else if (actual instanceof StopMigrationCheckStatement) {
- StopMigrationCheckStatementAssert.assertIs(assertContext, (StopMigrationCheckStatement) actual, (StopMigrationCheckStatementTestCase) expected);
} else if (actual instanceof StartMigrationCheckStatement) {
StartMigrationCheckStatementAssert.assertIs(assertContext, (StartMigrationCheckStatement) actual, (StartMigrationCheckStatementTestCase) expected);
+ } else if (actual instanceof StopMigrationCheckStatement) {
+ StopMigrationCheckStatementAssert.assertIs(assertContext, (StopMigrationCheckStatement) actual, (StopMigrationCheckStatementTestCase) expected);
}
}
}