use of io.shardingjdbc.core.api.config.strategy.InlineShardingStrategyConfiguration in project sharding-jdbc by shardingjdbc.
the class ShardingNamespaceTest method assertInlineStrategy.
@Test
public void assertInlineStrategy() {
InlineShardingStrategyConfiguration inlineStrategy = this.applicationContext.getBean("inlineStrategy", InlineShardingStrategyConfiguration.class);
assertThat(inlineStrategy.getShardingColumn(), is("order_id"));
assertThat(inlineStrategy.getAlgorithmExpression(), is("t_order_${order_id % 4}"));
}
Aggregations