mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
package org.apache.rocketmq.broker;
|
||||
|
||||
import java.io.File;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
@@ -25,18 +26,17 @@ public class BrokerPathConfigHelperTest {
|
||||
|
||||
@Test
|
||||
public void testGetLmqConsumerOffsetPath() {
|
||||
String lmqConsumerOffsetPath = BrokerPathConfigHelper.getLmqConsumerOffsetPath("/home/admin/store");
|
||||
assertEquals("/home/admin/store/config/lmqConsumerOffset.json", lmqConsumerOffsetPath);
|
||||
String lmqConsumerOffsetPath = BrokerPathConfigHelper.getLmqConsumerOffsetPath("/home/admin/store".replace("/", File.separator));
|
||||
assertEquals("/home/admin/store/config/lmqConsumerOffset.json".replace("/", File.separator), lmqConsumerOffsetPath);
|
||||
|
||||
String consumerOffsetPath = BrokerPathConfigHelper.getConsumerOffsetPath("/home/admin/store".replace("/", File.separator));
|
||||
assertEquals("/home/admin/store/config/consumerOffset.json".replace("/", File.separator), consumerOffsetPath);
|
||||
|
||||
String consumerOffsetPath = BrokerPathConfigHelper.getConsumerOffsetPath("/home/admin/store");
|
||||
assertEquals("/home/admin/store/config/consumerOffset.json", consumerOffsetPath);
|
||||
String topicConfigPath = BrokerPathConfigHelper.getTopicConfigPath("/home/admin/store".replace("/", File.separator));
|
||||
assertEquals("/home/admin/store/config/topics.json".replace("/", File.separator), topicConfigPath);
|
||||
|
||||
String topicConfigPath = BrokerPathConfigHelper.getTopicConfigPath("/home/admin/store");
|
||||
assertEquals("/home/admin/store/config/topics.json", topicConfigPath);
|
||||
|
||||
String subscriptionGroupPath = BrokerPathConfigHelper.getSubscriptionGroupPath("/home/admin/store");
|
||||
assertEquals("/home/admin/store/config/subscriptionGroup.json", subscriptionGroupPath);
|
||||
String subscriptionGroupPath = BrokerPathConfigHelper.getSubscriptionGroupPath("/home/admin/store".replace("/", File.separator));
|
||||
assertEquals("/home/admin/store/config/subscriptionGroup.json".replace("/", File.separator), subscriptionGroupPath);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user