Search in sources :

Example 1 with SQLStatementAssert

use of io.shardingjdbc.core.parsing.integrate.asserts.SQLStatementAssert in project sharding-jdbc by shardingjdbc.

the class IntegrateSupportedSQLParsingTest method assertSupportedSQL.

@Test
public void assertSupportedSQL() {
    String sql = sqlCasesLoader.getSupportedSQL(sqlCaseId, sqlCaseType, parserResultSetLoader.getParserResult(sqlCaseId).getParameters());
    new SQLStatementAssert(new SQLParsingEngine(databaseType, sql, getShardingRule()).parse(), sqlCaseId, sqlCaseType).assertSQLStatement();
}
Also used : SQLParsingEngine(io.shardingjdbc.core.parsing.SQLParsingEngine) SQLStatementAssert(io.shardingjdbc.core.parsing.integrate.asserts.SQLStatementAssert) Test(org.junit.Test)

Aggregations

SQLParsingEngine (io.shardingjdbc.core.parsing.SQLParsingEngine)1 SQLStatementAssert (io.shardingjdbc.core.parsing.integrate.asserts.SQLStatementAssert)1 Test (org.junit.Test)1