private static File outFolder;
@BeforeClass
public static void runCrawl() throws Exception {
outFolder = TMP_FOLDER.getTempDir();
SimpleSiteCrawl simpleCrawl = new SimpleSiteCrawl() {
@Override
protected CrawljaxConfigurationBuilder newCrawlConfigurationBuilder() {
return super.newCrawlConfigurationBuilder().setOutputDirectory(
TMP_FOLDER.getTempDir());
}
};
simpleCrawl.setup();
CrawlOverview plugin = new CrawlOverview();
simpleCrawl.crawlWith(plugin);
result = plugin.getResult();
LOG.debug("TMP folder is in {}", outFolder.getAbsoluteFile());
}