Package org.eclipse.jgit.junit.http

Examples of org.eclipse.jgit.junit.http.AppServer


    }
  }

  @Before
  public void setUp() throws Exception {
    server = new AppServer();
    ctx = server.addContext("/");
  }
View Full Code Here


  private AppServer server;

  @Before
  public void setUp() throws Exception {

    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.destroy();
  }

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

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

    fail("Expected ServletException complaining about unset base-path");
  }

  @Test
  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.junit.http.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.