Search in sources :

Example 1 with ExpectedTableToken

use of io.shardingjdbc.core.parsing.integrate.jaxb.token.ExpectedTableToken in project sharding-jdbc by shardingjdbc.

the class TableTokenAssert method assertTableTokens.

void assertTableTokens(final List<SQLToken> actual, final ExpectedTokens expected) {
    List<TableToken> tableTokens = getTableTokens(actual);
    assertThat(assertMessage.getFullAssertMessage("Table tokens size error: "), tableTokens.size(), is(expected.getTableTokens().size()));
    int count = 0;
    for (ExpectedTableToken each : expected.getTableTokens()) {
        assertTableToken(tableTokens.get(count), each);
        count++;
    }
}
Also used : TableToken(io.shardingjdbc.core.parsing.parser.token.TableToken) ExpectedTableToken(io.shardingjdbc.core.parsing.integrate.jaxb.token.ExpectedTableToken) ExpectedTableToken(io.shardingjdbc.core.parsing.integrate.jaxb.token.ExpectedTableToken)

Aggregations

ExpectedTableToken (io.shardingjdbc.core.parsing.integrate.jaxb.token.ExpectedTableToken)1 TableToken (io.shardingjdbc.core.parsing.parser.token.TableToken)1