List of usage examples for org.eclipse.jgit.junit.http SimpleHttpServer SimpleHttpServer
public SimpleHttpServer(Repository repository, boolean withSsl)
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*/ }