shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/rdl/alter/impl/AlterDatabaseDiscoveryRuleStatementAssert.java
/**
     * Assert alter database discovery rule statement is correct with expected parser result.
     *
     * @param assertContext assert context
     * @param actual actual alter database discovery rule statement
     * @param expected expected alter database discovery rule statement test case
     */
Assert alter database discovery rule statement is correct with expected parser result.
@param assertContext assert context
@param actual actual alter database discovery rule statement
@param expected expected alter database discovery rule statement test case
Assert alter database discovery rule statement is correct with expected parser result . @param assertContext assert context @param actual actual alter database discovery rule statement @param expected expected alter database discovery rule statement test case
public static void assertIs(final SQLCaseAssertContext assertContext, final AlterDatabaseDiscoveryRuleStatement actual, final AlterDataBaseDiscoveryRuleStatementTestCase expected) {
        if (null == expected) {
            assertNull(assertContext.getText("Actual statement should not exist."), actual);
        } else {
            assertNotNull(assertContext.getText("Actual statement should exist."), actual);
            assertDatabaseDiscoveryRules(assertContext, actual.getRules(), expected.getRules());
        }
    }
public static void assertIs ( final SQLCaseAssertContext assertContext , final AlterDatabaseDiscoveryRuleStatement actual , final AlterDataBaseDiscoveryRuleStatementTestCase expected ) { if ( null == expected ) { assertNull ( assertContext . getText ( "Actual statement should not exist." ) , actual ) ; } else { assertNotNull ( assertContext . getText ( "Actual statement should exist." ) , actual ) ; assertDatabaseDiscoveryRules ( assertContext , actual . getRules ( ) , expected . getRules ( ) ) ; } }
Assert alter database discovery rule statement is correct with expected parser result.
Assert alter database discovery rule statement is correct with expected parser result .