use of io.shardingjdbc.orchestration.internal.json.fixture.TestComplexKeysShardingAlgorithm in project sharding-jdbc by shardingjdbc.
the class ShardingRuleConfigurationConverterTest method assertToJsonForComplexStrategy.
@Test
public void assertToJsonForComplexStrategy() {
ComplexShardingStrategyConfiguration actual = new ComplexShardingStrategyConfiguration("order_id,item_id", new TestComplexKeysShardingAlgorithm());
assertThat(ShardingRuleConfigurationConverter.toJson(getCommonShardingRuleConfig(actual)), is(getJsonForComplexStrategy()));
}
Aggregations