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