Package org.apache.droids.localserver

Examples of org.apache.droids.localserver.ResourceHandler


    this.testserver = new LocalHttpServer();
  }

  @Test
  public void testReportCrawlingDroid() throws Exception {
    this.testserver.register("*", new ResourceHandler());
    this.testserver.start();

    String baseURI = "http:/" + this.testserver.getServiceAddress();
    String targetURI = baseURI + "/start_html";

View Full Code Here


    this.testserver.stop();
  }

  @Test
  public void testBasicCrawling() throws Exception {
    this.testserver.register("*", new ResourceHandler());
    this.testserver.start();

    String baseURI = "http:/" + this.testserver.getServiceAddress();
    String targetURI = baseURI + "/start_html";

View Full Code Here

    ReportHandler.recycle();
  }

  @Test
  public void testTerminateCrawlingOnException() throws Exception {
    this.testserver.register("*", new ResourceHandler());
    this.testserver.start();

    String baseURI = "http:/" + this.testserver.getServiceAddress();
    String targetURI = baseURI + "/start_html";

View Full Code Here

TOP

Related Classes of org.apache.droids.localserver.ResourceHandler

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.