public void setUp() {
plainTool = new GroovyDocTool(new String[]{"src/test/groovy"});
xmlTool = new GroovyDocTool(
new FileSystemResourceManager("src"),
new String[] {"src/main/java", "../../src/main", "src/test/groovy"},
new String[]{TEMPLATES_DIR + "/topLevel/rootDocStructuredData.xml"},
new String[]{TEMPLATES_DIR + "/packageLevel/packageDocStructuredData.xml"},
new String[]{TEMPLATES_DIR + "/classLevel/classDocStructuredData.xml"},
new ArrayList<LinkArgument>(),
new Properties()
);
xmlToolForTests = new GroovyDocTool(
new FileSystemResourceManager("src"),
new String[] {"src/test/groovy", "src/test/resources", "../../src/test"},
new String[]{TEMPLATES_DIR + "/topLevel/rootDocStructuredData.xml"},
new String[]{TEMPLATES_DIR + "/packageLevel/packageDocStructuredData.xml"},
new String[]{TEMPLATES_DIR + "/classLevel/classDocStructuredData.xml"},
new ArrayList<LinkArgument>(),
new Properties()
);
ArrayList<LinkArgument> links = new ArrayList<LinkArgument>();
LinkArgument link = new LinkArgument();
link.setHref("http://docs.oracle.com/javase/7/docs/api/");
link.setPackages("java.,org.xml.,javax.,org.xml.");
links.add(link);
htmlTool = makeHtmltool(links, new Properties());
}