@Test public void creates_command_directories() throws IOException { CommandDir dir = daemonDir.createCommandDir(); assertThat("command dir", relativeToBaseDir(dir.getPath()), doesMatchRegex("commands/\\d+")); assertThat("request file", relativeToBaseDir(dir.getRequestPath()), doesMatchRegex("commands/\\d+/request")); assertThat("response file", relativeToBaseDir(dir.getResponsePath()), doesMatchRegex("commands/\\d+/response")); }
public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); }
DaemonDir { public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); } }
DaemonDir { public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); } DaemonDir(Path baseDir); }
DaemonDir { public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); } DaemonDir(Path baseDir); Path getCommandsDir(); CommandDir createCommandDir(); SuiteDir createSuiteDir(); @Override String toString(); }
DaemonDir { public CommandDir createCommandDir() throws IOException { return new CommandDir(createUniqueDirUnder(getCommandsDir())); } DaemonDir(Path baseDir); Path getCommandsDir(); CommandDir createCommandDir(); SuiteDir createSuiteDir(); @Override String toString();  }