Fix HashPartitionServiceTest
This commit is contained in:
parent
45a3730708
commit
ab9bef4d90
@ -426,6 +426,9 @@ public class HashPartitionServiceTest {
|
|||||||
topicService);
|
topicService);
|
||||||
ReflectionTestUtils.setField(partitionService, "coreTopic", "tb.core");
|
ReflectionTestUtils.setField(partitionService, "coreTopic", "tb.core");
|
||||||
ReflectionTestUtils.setField(partitionService, "corePartitions", 10);
|
ReflectionTestUtils.setField(partitionService, "corePartitions", 10);
|
||||||
|
ReflectionTestUtils.setField(partitionService, "cfEventTopic", "tb_cf_event");
|
||||||
|
ReflectionTestUtils.setField(partitionService, "cfStateTopic", "tb_cf_state");
|
||||||
|
ReflectionTestUtils.setField(partitionService, "cfPartitions", 10);
|
||||||
ReflectionTestUtils.setField(partitionService, "vcTopic", "tb.vc");
|
ReflectionTestUtils.setField(partitionService, "vcTopic", "tb.vc");
|
||||||
ReflectionTestUtils.setField(partitionService, "vcPartitions", 10);
|
ReflectionTestUtils.setField(partitionService, "vcPartitions", 10);
|
||||||
ReflectionTestUtils.setField(partitionService, "hashFunctionName", hashFunctionName);
|
ReflectionTestUtils.setField(partitionService, "hashFunctionName", hashFunctionName);
|
||||||
|
|||||||
@ -62,9 +62,9 @@ public class HashPartitionService implements PartitionService {
|
|||||||
private String coreTopic;
|
private String coreTopic;
|
||||||
@Value("${queue.core.partitions:10}")
|
@Value("${queue.core.partitions:10}")
|
||||||
private Integer corePartitions;
|
private Integer corePartitions;
|
||||||
@Value("${queue.calculated_fields.event_topic}")
|
@Value("${queue.calculated_fields.event_topic:tb_cf_event}")
|
||||||
private String cfEventTopic;
|
private String cfEventTopic;
|
||||||
@Value("${queue.calculated_fields.state_topic}")
|
@Value("${queue.calculated_fields.state_topic:tb_cf_state}")
|
||||||
private String cfStateTopic;
|
private String cfStateTopic;
|
||||||
@Value("${queue.calculated_fields.partitions:10}")
|
@Value("${queue.calculated_fields.partitions:10}")
|
||||||
private Integer cfPartitions;
|
private Integer cfPartitions;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user