shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/ral/impl/UpdatableRALStatementAssert.java
/**
     * Assert updatable RAL statement is correct with expected parser result.
     *
     * @param assertContext assert context
     * @param actual actual updatable RAL statement
     * @param expected expected updatable RAL statement test case
     */
Assert updatable RAL statement is correct with expected parser result.
@param assertContext assert context
@param actual actual updatable RAL statement
@param expected expected updatable RAL statement test case
Assert updatable RAL statement is correct with expected parser result . @param assertContext assert context @param actual actual updatable RAL statement @param expected expected updatable RAL statement test case
public static void assertIs(final SQLCaseAssertContext assertContext, final UpdatableRALStatement actual, final SQLParserTestCase expected) {
        if (actual instanceof StopScalingSourceWritingStatement) {
            StopScalingSourceWritingStatementAssert.assertIs(assertContext, (StopScalingSourceWritingStatement) actual, (StopScalingSourceWritingStatementTestCase) expected);
        } else if (actual instanceof CheckoutScalingStatement) {
            CheckoutScalingStatementAssert.assertIs(assertContext, (CheckoutScalingStatement) actual, (CheckoutScalingStatementTestCase) expected);
        }
    }
public static void assertIs ( final SQLCaseAssertContext assertContext , final UpdatableRALStatement actual , final SQLParserTestCase expected ) { if ( actual instanceof StopScalingSourceWritingStatement ) { StopScalingSourceWritingStatementAssert . assertIs ( assertContext , ( StopScalingSourceWritingStatement ) actual , ( StopScalingSourceWritingStatementTestCase ) expected ) ; } else if ( actual instanceof CheckoutScalingStatement ) { CheckoutScalingStatementAssert . assertIs ( assertContext , ( CheckoutScalingStatement ) actual , ( CheckoutScalingStatementTestCase ) expected ) ; } }
Assert updatable RAL statement is correct with expected parser result.
Assert updatable RAL statement is correct with expected parser result .
// TODO add more test case