Package org.eclipse.jgit.http.test.util

Examples of org.eclipse.jgit.http.test.util.AppServer


  private AppServer server;

  protected void setUp() throws Exception {
    super.setUp();

    server = new AppServer();

    ServletContextHandler ctx = server.addContext("/");
    ctx.addServlet(new ServletHolder(new ErrorServlet(404)), "/404");
    ctx.addServlet(new ServletHolder(new ErrorServlet(500)), "/500");
View Full Code Here


    s.init(c);
    s.destroy();
  }

  public void testInitUnderContainer_NoBasePath() throws Exception {
    server = new AppServer();

    ServletContextHandler app = server.addContext("/");
    ServletHolder s = app.addServlet(GitServlet.class, "/git");
    s.setInitOrder(1);
View Full Code Here

    assertTrue("Caught ServletException", why instanceof ServletException);
    assertTrue("Wanted base-path", why.getMessage().contains("base-path"));
  }

  public void testInitUnderContainer_WithBasePath() throws Exception {
    server = new AppServer();

    ServletContextHandler app = server.addContext("/");
    ServletHolder s = app.addServlet(GitServlet.class, "/git");
    s.setInitOrder(1);
    s.setInitParameter("base-path", ".");
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.http.test.util.AppServer

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.