JobNodePath { public String getServerNodePath() { return String.format("/%s/%s", jobName, SERVERS_NODE); }  String getFullPath(final String node); String getConfigNodePath(final String nodeName); String getLeaderNodePath(final String nodeName); String getServerNodePath(); String getServerNodePath(final String serverIp); String getServerNodePath(final String serverIp, final String nodeName); String getExecutionNodePath(); String getExecutionNodePath(final String item, final String nodeName); static final String TRIGGER_NODE; static final String PAUSED_NODE; static final String DISABLED_NODE; static final String SHUTDOWN_NODE; static final String STATUS_NODE; }
@Test public void assertGetServerNodePath() { assertThat(jobNodePath.getServerNodePath(), is("/testJob/servers")); }
@Test public void assertGetServerNodePathForServerIp() { assertThat(jobNodePath.getServerNodePath("ip0"), is("/testJob/servers/ip0")); }
@Test public void assertGetServerNodePathForServerIpAndNameNode() { assertThat(jobNodePath.getServerNodePath("ip0", "node"), is("/testJob/servers/ip0/node")); }