mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 02:57:53 +00:00
18 lines
378 B
C++
18 lines
378 B
C++
#include <gtest/gtest.h>
|
|
#include "cppkafka/zookeeper/zookeeper_watcher.h"
|
|
|
|
using std::string;
|
|
|
|
using namespace cppkafka;
|
|
|
|
class ZookeeperWatcherTest : public testing::Test {
|
|
public:
|
|
|
|
};
|
|
|
|
TEST_F(ZookeeperWatcherTest, GetBrokers) {
|
|
ZookeeperWatcher watcher(ZOOKEEPER_TEST_INSTANCE);
|
|
string brokers = watcher.get_brokers();
|
|
EXPECT_EQ(KAFKA_TEST_INSTANCE, brokers);
|
|
}
|