@Test public void testUnfixForEmptyNamespace() { CuratorFramework client = CuratorFrameworkFactory.builder().namespace("").retryPolicy(new RetryOneTime(1)).connectString("foo").build(); CuratorFrameworkImpl clientImpl = (CuratorFrameworkImpl) client; Assert.assertEquals(clientImpl.unfixForNamespace("/foo/bar"), "/foo/bar"); CloseableUtils.closeQuietly(client); }
@Override String unfixForNamespace(String path) { return namespace.unfixForNamespace(path); }
NamespaceFacade extends CuratorFrameworkImpl { @Override String unfixForNamespace(String path) { return namespace.unfixForNamespace(path); } }
NamespaceFacade extends CuratorFrameworkImpl { @Override String unfixForNamespace(String path) { return namespace.unfixForNamespace(path); } NamespaceFacade(CuratorFrameworkImpl client, String namespace); }
NamespaceFacade extends CuratorFrameworkImpl { @Override String unfixForNamespace(String path) { return namespace.unfixForNamespace(path); } NamespaceFacade(CuratorFrameworkImpl client, String namespace); @Override CuratorFramework nonNamespaceView(); @Override CuratorFramework usingNamespace(String newNamespace); @Override String getNamespace(); @Override void start(); @Override void close(); @Override Listenable<ConnectionStateListener> getConnectionStateListenable(); @Override Listenable<CuratorListener> getCuratorListenable(); @Override Listenable<UnhandledErrorListener> getUnhandledErrorListenable(); @Override void sync(String path, Object context); @Override CuratorZookeeperClient getZookeeperClient(); @Override EnsurePath newNamespaceAwareEnsurePath(String path); }
NamespaceFacade extends CuratorFrameworkImpl { @Override String unfixForNamespace(String path) { return namespace.unfixForNamespace(path); } NamespaceFacade(CuratorFrameworkImpl client, String namespace); @Override CuratorFramework nonNamespaceView(); @Override CuratorFramework usingNamespace(String newNamespace); @Override String getNamespace(); @Override void start(); @Override void close(); @Override Listenable<ConnectionStateListener> getConnectionStateListenable(); @Override Listenable<CuratorListener> getCuratorListenable(); @Override Listenable<UnhandledErrorListener> getUnhandledErrorListenable(); @Override void sync(String path, Object context); @Override CuratorZookeeperClient getZookeeperClient(); @Override EnsurePath newNamespaceAwareEnsurePath(String path);  }