ServerNode { public boolean isLocalServerDisabledPath(final String path) { return path.startsWith(jobNodePath.getFullPath(String.format(ServerNode.DISABLED, localHostService.getIp()))); } ServerNode(final String jobName); boolean isLocalJobTriggerPath(final String path); boolean isLocalJobPausedPath(final String path); boolean isLocalJobShutdownPath(final String path); boolean isLocalServerDisabledPath(final String path); boolean isServerStatusPath(final String path); boolean isServerDisabledPath(final String path); boolean isServerShutdownPath(final String path); static final String ROOT; }
@Test public void assertIsLocalServerDisabledPath() { assertTrue(serverNode.isLocalServerDisabledPath("/testJob/servers/" + localHostService.getIp() + "/disabled")); }