shardingsphere-test/shardingsphere-parser-test/src/main/java/org/apache/shardingsphere/test/sql/parser/parameterized/asserts/statement/distsql/rql/impl/rule/ShowShadowAlgorithmsStatementAssert.java
/**
     * Assert show shadow algorithms statement is correct with expected parser result.
     *
     * @param assertContext assert context
     * @param actual actual show shadow algorithms statement
     * @param expected expected show shadow algorithms statement test case
     */
Assert show shadow algorithms statement is correct with expected parser result.
@param assertContext assert context
@param actual actual show shadow algorithms statement
@param expected expected show shadow algorithms statement test case
Assert show shadow algorithms statement is correct with expected parser result . @param assertContext assert context @param actual actual show shadow algorithms statement @param expected expected show shadow algorithms statement test case
public static void assertIs(final SQLCaseAssertContext assertContext, final ShowShadowAlgorithmsStatement actual, final ShowShadowAlgorithmsStatementTestCase expected) {
        if (null != expected.getSchema()) {
            assertTrue(assertContext.getText("Actual schema should exist."), actual.getSchema().isPresent());
            SchemaAssert.assertIs(assertContext, actual.getSchema().get(), expected.getSchema());
        } else {
            assertFalse(assertContext.getText("Actual schema should not exist."), actual.getSchema().isPresent());
        }
    }
public static void assertIs ( final SQLCaseAssertContext assertContext , final ShowShadowAlgorithmsStatement actual , final ShowShadowAlgorithmsStatementTestCase expected ) { if ( null != expected . getSchema ( ) ) { assertTrue ( assertContext . getText ( "Actual schema should exist." ) , actual . getSchema ( ) . isPresent ( ) ) ; SchemaAssert . assertIs ( assertContext , actual . getSchema ( ) . get ( ) , expected . getSchema ( ) ) ; } else { assertFalse ( assertContext . getText ( "Actual schema should not exist." ) , actual . getSchema ( ) . isPresent ( ) ) ; } }
Assert show shadow algorithms statement is correct with expected parser result.
Assert show shadow algorithms statement is correct with expected parser result .