public abstract class HttpTestCase extends LocalDiskRepositoryTestCase
| Modifier and Type | Field and Description |
|---|---|
protected static String |
master |
protected AppServer |
server
In-memory application server; subclass must start.
|
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE| Constructor and Description |
|---|
HttpTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected TestRepository<Repository> |
createTestRepository() |
protected static void |
fsck(Repository db,
RevObject... tips) |
protected List<AccessEvent> |
getRequests() |
protected List<AccessEvent> |
getRequests(String path) |
protected List<AccessEvent> |
getRequests(URIish base,
String path) |
static String |
join(URIish base,
String path) |
static String |
loose(URIish base,
AnyObjectId id) |
protected static Set<RefSpec> |
mirror(String... refs) |
protected static Collection<RemoteRefUpdate> |
push(TestRepository from,
RevCommit q) |
void |
setUp() |
void |
tearDown() |
protected URIish |
toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
String name) |
protected URIish |
toURIish(String path) |
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tick, write, writeprotected static final String master
protected AppServer server
public void setUp()
throws Exception
setUp in class LocalDiskRepositoryTestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class LocalDiskRepositoryTestCaseExceptionprotected TestRepository<Repository> createTestRepository() throws IOException
IOExceptionprotected URIish toURIish(String path) throws URISyntaxException
URISyntaxExceptionprotected URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, String name) throws URISyntaxException
URISyntaxExceptionprotected List<AccessEvent> getRequests()
protected List<AccessEvent> getRequests(URIish base, String path)
protected List<AccessEvent> getRequests(String path)
protected static void fsck(Repository db, RevObject... tips) throws Exception
Exceptionprotected static Collection<RemoteRefUpdate> push(TestRepository from, RevCommit q) throws IOException
IOExceptionpublic static String loose(URIish base, AnyObjectId id)
Copyright © 2017 Eclipse JGit Project. All rights reserved.