@BeforeClass public static void setUp() { NestedZookeeperServers.getInstance().startServerIfNotStarted(PORT, TEST_TEMP_DIRECTORY); zkRegCenter = new ZookeeperRegistryCenter(zkConfig); zkRegCenter.init(); zkRegCenter.addCacheData("/test"); }
@Override public void beforeTestClass(final TestContext testContext) throws Exception { NestedZookeeperServers.getInstance().startServerIfNotStarted(); }