use of org.springframework.data.relational.core.sql.Expression in project spring-data-jdbc by spring-projects.
the class ExpressionVisitorUnitTests method considerNamingStrategyForTableAsterisk.
// GH-1003
@Test
void considerNamingStrategyForTableAsterisk() {
ExpressionVisitor visitor = new ExpressionVisitor(new SimpleRenderContext(NamingStrategies.toUpper()));
Expression expression = Table.create("tab").asterisk();
expression.visit(visitor);
assertThat(visitor.getRenderedPart().toString()).isEqualTo("TAB.*");
}
Aggregations