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

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


  }

  public void testDefaultConstructor_NoBasePath() throws Exception {
    GitServlet s = new GitServlet();
    try {
      s.init(new MockServletConfig());
      fail("Init did not crash due to missing parameter");
    } catch (ServletException e) {
      assertTrue(e.getMessage().contains("base-path"));
    }
  }
View Full Code Here


      assertTrue(e.getMessage().contains("base-path"));
    }
  }

  public void testDefaultConstructor_WithBasePath() throws Exception {
    MockServletConfig c = new MockServletConfig();
    c.setInitParameter("base-path", ".");
    c.setInitParameter("export-all", "false");

    GitServlet s = new GitServlet();
    s.init(c);
    s.destroy();
  }
View Full Code Here

TOP

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

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.