Example usage for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer

List of usage examples for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer

Introduction

In this page you can find the example usage for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer.

Prototype

public SimpleHttpServer(Repository repository, boolean withSsl) 

Source Link

Document

Constructor for <code>SimpleHttpServer</code>.

Usage

From source file:org.springframework.cloud.config.server.environment.JGitEnvironmentRepositorySslTests.java

License:Apache License

@BeforeClass
public static void setup() throws Exception {
    URL repoUrl = JGitEnvironmentRepositorySslTests.class.getResource("/test1-config-repo/git");
    Repository repo = new FileRepository(new File(repoUrl.toURI()));
    server = new SimpleHttpServer(repo, true);
    server.start();/*from w  w  w  . j  a  v a2  s  .co  m*/
}