diff options
author | Harald Musum <musum@verizonmedia.com> | 2019-09-03 08:16:35 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2019-09-03 08:16:35 +0200 |
commit | e1356fadd445fbf7d58d2c3f0574dea092964c08 (patch) | |
tree | 2ba233aad5996abc0600cf45223bab878da0cb26 /clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java | |
parent | 7e26976e385c864da3b8bebaf63d4648bee694b2 (diff) |
Cleanup tests, no functional changes
Diffstat (limited to 'clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java')
-rw-r--r-- | clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java index 72b89dad85d..34c8fafa702 100644 --- a/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java +++ b/clustercontroller-core/src/test/java/com/yahoo/vespa/clustercontroller/core/ZooKeeperTestServer.java @@ -20,7 +20,7 @@ public class ZooKeeperTestServer { private static final String DIR_PREFIX = "test_fltctrl_zk"; private static final String DIR_POSTFIX = "sdir"; - public ZooKeeperTestServer() throws IOException { + ZooKeeperTestServer() throws IOException { this(0); } @@ -42,15 +42,15 @@ public class ZooKeeperTestServer { } } - public static ZooKeeperTestServer createWithFixedPort(int port) throws IOException { + static ZooKeeperTestServer createWithFixedPort(int port) throws IOException { return new ZooKeeperTestServer(port); } - public int getPort() { + private int getPort() { return factory.getLocalPort(); } - public String getAddress() { + String getAddress() { return HostName.getLocalhost() + ":" + getPort(); } @@ -64,7 +64,7 @@ public class ZooKeeperTestServer { factory.shutdown(); } - public void delete(File f) { + private void delete(File f) { if (f.isDirectory()) { for (File file : f.listFiles()) { delete(file); |