Registry / testing / curator-test

curator-test

JSON →
library5.9.0javamavenunverified

Curator Testing provides utilities for unit testing Apache ZooKeeper-based applications, including an embedded ZooKeeper server.

<dependency> <groupId>org.apache.curator</groupId> <artifactId>curator-test</artifactId> <version>5.9.0</version> </dependency>
INSTALL
IMPORT
SIG · CURATOR-TEST
C
curator-test
testingjavav5.9.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestingServer
org.apache.curator.test.TestingServer

Minimal embedded ZooKeeper server using TestingServer.

import org.apache.curator.test.TestingServer; TestingServer server = new TestingServer(); System.out.println("ZooKeeper port: " + server.getPort()); server.close();
Debug
Known issues
gotchaTestingServer may have port conflicts if not configured properly.
fix
Use TestingServer with a custom port or allow it to pick a random free port.
affects: *
Upgrade
Version history
5.9.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
curator-test — mvn dependency:get curator-test · libregistry