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, 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, 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 LocalDiskRepositoryTestCase
Exception
public void tearDown() throws Exception
tearDown
in class LocalDiskRepositoryTestCase
Exception
protected TestRepository<Repository> createTestRepository() throws IOException
IOException
protected URIish toURIish(String path) throws URISyntaxException
URISyntaxException
protected URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app, String name) throws URISyntaxException
URISyntaxException
protected 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
Exception
protected static Collection<RemoteRefUpdate> push(TestRepository from, RevCommit q) throws IOException
IOException
public static String loose(URIish base, AnyObjectId id)
Copyright © 2015 Eclipse JGit Project. All rights reserved.