Add initial zookeeper wrapper code

This commit is contained in:
Matias Fontanini
2016-06-11 08:18:09 -07:00
parent eed3ac270a
commit 65126b27f1
8 changed files with 1270 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
#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);
}