List<String> toolArgs = new ArrayList<>();
toolArgs.addAll(Arrays.asList(toolName, "--output=" + dir.getAbsolutePath()));
toolArgs.addAll(Arrays.asList(otherArgs));
CeylonDocToolTool tool = pluginFactory.bindArguments(model, toolArgs);
Assert.assertEquals(0, dir.listFiles().length);
tool.run();
}
private void assertHtmlFiles(String toolName) throws IOException {
List<File> files = Arrays.asList(dir.listFiles());
Assert.assertFalse(files.isEmpty());