use of com.dangdang.ddframe.rdb.sharding.router.strategy.ShardingStrategy in project sharding-jdbc by dangdangdotcom.
the class ShardingStrategyTest method assertDoDynamicShardingForMultipleKeys.
@Test
public void assertDoDynamicShardingForMultipleKeys() {
ShardingStrategy strategy = new ShardingStrategy("column", new TestMultipleKeysShardingAlgorithm());
assertThat(strategy.doDynamicSharding(createShardingValues(new ShardingValue<>("logicTable", "column", "1"))), is((Collection<String>) Collections.<String>emptyList()));
}
Aggregations