public class BaseTestTreeCache extends BaseClassForTests
Modifier and Type | Field and Description |
---|---|
protected AtomicBoolean |
hadBackgroundException |
server
Constructor and Description |
---|
BaseTestTreeCache() |
Modifier and Type | Method and Description |
---|---|
protected TreeCache |
buildWithListeners(TreeCache.Builder builder)
Finish constructing a TreeCache that records exceptions and automatically listens.
|
protected TreeCache |
newTreeCacheWithListeners(CuratorFramework client,
String path)
Construct a TreeCache that records exceptions and automatically listens.
|
void |
setup() |
void |
teardown() |
createAndStartCluster, createServer
protected final AtomicBoolean hadBackgroundException
protected TreeCache newTreeCacheWithListeners(CuratorFramework client, String path)
protected TreeCache buildWithListeners(TreeCache.Builder builder)
@BeforeEach public void setup() throws Exception
setup
in class BaseClassForTests
Exception
@AfterEach public void teardown() throws Exception
teardown
in class BaseClassForTests
Exception
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.