Package com.crawljax.core

Examples of com.crawljax.core.ExitNotifier


  protected void configure() {
    LOG.debug("Configuring the core module");
    install(new MetricsModule());
    install(new ConfigurationModule(configuration));

    bind(ExitNotifier.class).toInstance(new ExitNotifier(configuration.getMaximumStates()));

    bind(ExecutorService.class).toInstance(Executors.newCachedThreadPool());

    bind(CrawlSession.class).toProvider(CrawlSessionProvider.class);
View Full Code Here


  protected void configure() {
    LOG.debug("Configuring the core module");

    install(new ConfigurationModule(configuration));

    bind(ExitNotifier.class).toInstance(new ExitNotifier(configuration.getMaximumStates()));

    bind(ExecutorService.class).toInstance(Executors.newCachedThreadPool());

    bind(CrawlSession.class).toProvider(CrawlSessionProvider.class);
View Full Code Here

  @Test
  public void testEdge() throws CrawljaxException {

    StateVertex s1 = new StateVertexImpl(0, "stateSource", "dom1");
    StateVertex s2 = new StateVertexImpl(0, "stateTarget", "dom2");
    InMemoryStateFlowGraph sfg = new InMemoryStateFlowGraph(new ExitNotifier(0), new DefaultStateVertexFactory());
    sfg.putIndex(s1);

    sfg.putIfAbsent(s2);

    Eventable e = new Eventable();
View Full Code Here

    // CLONE State so hit must be true;
    assertTrue("Invariants are exeucted", hit);
  }

  private InMemoryStateFlowGraph newStateFlowGraph() {
    InMemoryStateFlowGraph sfg = new InMemoryStateFlowGraph(new ExitNotifier(0), new DefaultStateVertexFactory());
    sfg.putIndex(index);
    return sfg;
  }
View Full Code Here

                    "<table><div>index</div></table>");
    state2 = new StateVertexImpl(2, "STATE_TWO", "<table><div>state2</div></table>");
    state3 = new StateVertexImpl(3, "STATE_THREE", "<table><div>state3</div></table>");
    state4 = new StateVertexImpl(4, "STATE_FOUR", "<table><div>state4</div></table>");
    state5 = new StateVertexImpl(5, "STATE_FIVE", "<table><div>state5</div></table>");
    graph = new InMemoryStateFlowGraph(new ExitNotifier(0), new DefaultStateVertexFactory());
    graph.putIndex(index);
  }
View Full Code Here

    String HTML2 =
            "<SCRIPT src='js/jquery-1.2.1.js' type='text/javascript'></SCRIPT> "
                    + "<SCRIPT src='js/jquery-1.2.3.js' type='text/javascript'></SCRIPT>"
                    + "<body><div id='firstdiv' class='orange'>";

    InMemoryStateFlowGraph g = new InMemoryStateFlowGraph(new ExitNotifier(0), new DefaultStateVertexFactory());
    g.putIndex(new StateVertexImpl(1, "", HTML1));
    g.putIfAbsent(new StateVertexImpl(2, "", HTML2));

    assertEquals(206, g.getMeanStateStringSize());
  }
View Full Code Here

    LOG.debug("Configuring the core module");
    disableJulLogging();
    install(new MetricsModule());
    install(new ConfigurationModule(configuration));

    bind(ExitNotifier.class).toInstance(new ExitNotifier(configuration.getMaximumStates()));

    bind(ExecutorService.class).toInstance(Executors.newCachedThreadPool());

    bind(CrawlSession.class).toProvider(CrawlSessionProvider.class);
View Full Code Here

                    "<table><div>index</div></table>");
    state2 = new StateVertexImpl(2, "STATE_TWO", "<table><div>state2</div></table>");
    state3 = new StateVertexImpl(3, "STATE_THREE", "<table><div>state3</div></table>");
    state4 = new StateVertexImpl(4, "STATE_FOUR", "<table><div>state4</div></table>");
    state5 = new StateVertexImpl(5, "STATE_FIVE", "<table><div>state5</div></table>");
    graph = new InMemoryStateFlowGraph(new ExitNotifier(0));
    graph.putIndex(index);
  }
View Full Code Here

    String HTML2 =
            "<SCRIPT src='js/jquery-1.2.1.js' type='text/javascript'></SCRIPT> "
                    + "<SCRIPT src='js/jquery-1.2.3.js' type='text/javascript'></SCRIPT>"
                    + "<body><div id='firstdiv' class='orange'>";

    InMemoryStateFlowGraph g = new InMemoryStateFlowGraph(new ExitNotifier(0));
    g.putIndex(new StateVertexImpl(1, "", HTML1));
    g.putIfAbsent(new StateVertexImpl(2, "", HTML2));

    assertEquals(206, g.getMeanStateStringSize());
  }
View Full Code Here

  @Test
  public void testEdge() throws CrawljaxException {

    StateVertex s1 = new StateVertexImpl(0, "stateSource", "dom1");
    StateVertex s2 = new StateVertexImpl(0, "stateTarget", "dom2");
    InMemoryStateFlowGraph sfg = new InMemoryStateFlowGraph(new ExitNotifier(0));
    sfg.putIndex(s1);

    sfg.putIfAbsent(s2);

    Eventable e = new Eventable();
View Full Code Here

TOP

Related Classes of com.crawljax.core.ExitNotifier

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.