add topic console

This commit is contained in:
许晓东
2021-09-08 21:18:12 +08:00
parent 0b81f40b3f
commit fad17302c8
10 changed files with 196 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
package com.xuxd.kafka.console.service.impl;
import com.xuxd.kafka.console.service.TopicService;
import java.util.Collections;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
/**
* kafka-console-ui.
*
* @author xuxd
* @date 2021-09-08 20:04:28
**/
@Slf4j
@SpringBootTest
public class TopicServiceImplTest {
@Autowired
private TopicService topicService;
@Test
public void getTopicNameList() {
log.info(topicService.getTopicNameList().getData().toString());
}
@Test
public void getTopicList() {
log.info(topicService.getTopicList().getData().toString());
}
}