Package com.crawljax.crawltests

Examples of com.crawljax.crawltests.SimpleSiteCrawl


  private BaseCrawler crawler;
  private CrawlSession crawl;

  @Test
  public void testSimpleCrawlerFlowGraph() throws Exception {
    crawler = new SimpleSiteCrawl();
    crawl = crawler.crawl();
    verifyGraphSize(SimpleSiteCrawl.NUMBER_OF_STATES, SimpleSiteCrawl.NUMBER_OF_EDGES);
  }
View Full Code Here


  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());
  }
View Full Code Here

TOP

Related Classes of com.crawljax.crawltests.SimpleSiteCrawl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.