public abstract class HttpTestCase
extends org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Modifier and Type | Field and Description |
---|---|
protected static String |
master |
protected AppServer |
server
In-memory application server; subclass must start.
|
Constructor and Description |
---|
HttpTestCase() |
Modifier and Type | Method and Description |
---|---|
protected AppServer |
createServer()
Creates the .This default implementation creates a server
without SSLsupport listening for HTTP connections on a dynamically chosen
port, which can be gotten once the server has been started via its
AppServer.getPort() method. |
protected org.eclipse.jgit.junit.TestRepository<org.eclipse.jgit.lib.Repository> |
createTestRepository() |
protected static org.eclipse.jgit.transport.URIish |
extendPath(org.eclipse.jgit.transport.URIish uri,
String pathComponents) |
protected static void |
fsck(org.eclipse.jgit.lib.Repository db,
org.eclipse.jgit.revwalk.RevObject... tips) |
protected List<AccessEvent> |
getRequests() |
protected List<AccessEvent> |
getRequests(String path) |
protected List<AccessEvent> |
getRequests(org.eclipse.jgit.transport.URIish base,
String path) |
static String |
join(org.eclipse.jgit.transport.URIish base,
String path) |
static String |
loose(org.eclipse.jgit.transport.URIish base,
org.eclipse.jgit.lib.AnyObjectId id) |
protected static Set<org.eclipse.jgit.transport.RefSpec> |
mirror(String... refs) |
protected static Collection<org.eclipse.jgit.transport.RemoteRefUpdate> |
push(org.eclipse.jgit.junit.TestRepository from,
org.eclipse.jgit.revwalk.RevCommit q) |
protected static String |
rewriteUrl(String url,
String newProtocol,
int newPort) |
void |
setUp() |
void |
tearDown() |
protected org.eclipse.jgit.transport.URIish |
toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
String name) |
protected org.eclipse.jgit.transport.URIish |
toURIish(String path) |
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, write
protected static final String master
protected AppServer server
public void setUp() throws Exception
setUp
in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Exception
public void tearDown() throws Exception
tearDown
in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Exception
protected AppServer createServer()
AppServer.getPort()
method. Subclasses may override if they need
a more specialized server.AppServer
.protected org.eclipse.jgit.junit.TestRepository<org.eclipse.jgit.lib.Repository> createTestRepository() throws IOException
IOException
protected org.eclipse.jgit.transport.URIish toURIish(String path) throws URISyntaxException
URISyntaxException
protected org.eclipse.jgit.transport.URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, String name) throws URISyntaxException
URISyntaxException
protected List<AccessEvent> getRequests()
protected List<AccessEvent> getRequests(org.eclipse.jgit.transport.URIish base, String path)
protected List<AccessEvent> getRequests(String path)
protected static void fsck(org.eclipse.jgit.lib.Repository db, org.eclipse.jgit.revwalk.RevObject... tips) throws Exception
Exception
protected static Collection<org.eclipse.jgit.transport.RemoteRefUpdate> push(org.eclipse.jgit.junit.TestRepository from, org.eclipse.jgit.revwalk.RevCommit q) throws IOException
IOException
public static String loose(org.eclipse.jgit.transport.URIish base, org.eclipse.jgit.lib.AnyObjectId id)
protected static org.eclipse.jgit.transport.URIish extendPath(org.eclipse.jgit.transport.URIish uri, String pathComponents) throws URISyntaxException
URISyntaxException
Copyright © 2017 Eclipse JGit Project. All rights reserved.