shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/ral/impl/QueryableRALStatementAssert.java
/**
     * Assert query RAL statement is correct with expected parser result.
     *
     * @param assertContext assert context
     * @param actual actual queryable RAL statement
     * @param expected expected queryable RAL statement test case
     */
Assert query RAL statement is correct with expected parser result.
@param assertContext assert context
@param actual actual queryable RAL statement
@param expected expected queryable RAL statement test case
Assert query RAL statement is correct with expected parser result . @param assertContext assert context @param actual actual queryable RAL statement @param expected expected queryable RAL statement test case
public static void assertIs(final SQLCaseAssertContext assertContext, final QueryableRALStatement actual, final SQLParserTestCase expected) {
        if (actual instanceof ShowScalingListStatement) {
            ShowScalingListStatementAssert.assertIs(assertContext, (ShowScalingListStatement) actual, (ShowScalingListStatementTestCase) expected);
        } else if (actual instanceof ShowScalingCheckAlgorithmsStatement) {
            ShowScalingCheckAlgorithmsStatementAssert.assertIs(assertContext, (ShowScalingCheckAlgorithmsStatement) actual, (ShowScalingCheckAlgorithmsStatementTestCase) expected);
        } else if (actual instanceof CheckScalingStatement) {
            CheckScalingStatementAssert.assertIs(assertContext, (CheckScalingStatement) actual, (CheckScalingStatementTestCase) expected);
        }
    }
public static void assertIs ( final SQLCaseAssertContext assertContext , final QueryableRALStatement actual , final SQLParserTestCase expected ) { if ( actual instanceof ShowScalingListStatement ) { ShowScalingListStatementAssert . assertIs ( assertContext , ( ShowScalingListStatement ) actual , ( ShowScalingListStatementTestCase ) expected ) ; } else if ( actual instanceof ShowScalingCheckAlgorithmsStatement ) { ShowScalingCheckAlgorithmsStatementAssert . assertIs ( assertContext , ( ShowScalingCheckAlgorithmsStatement ) actual , ( ShowScalingCheckAlgorithmsStatementTestCase ) expected ) ; } else if ( actual instanceof CheckScalingStatement ) { CheckScalingStatementAssert . assertIs ( assertContext , ( CheckScalingStatement ) actual , ( CheckScalingStatementTestCase ) expected ) ; } }
Assert query RAL statement is correct with expected parser result.
Assert query RAL statement is correct with expected parser result .
// TODO add more test case