org.eclipse.jgit.junit.http
Class HttpTestCase
java.lang.Object
org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
org.eclipse.jgit.junit.http.HttpTestCase
public abstract class HttpTestCase
- extends LocalDiskRepositoryTestCase
Base class for HTTP related transport testing.
| Methods inherited from class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase |
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, read, recursiveDelete, runHook, tick, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
master
protected static final String master
- See Also:
- Constant Field Values
server
protected AppServer server
- In-memory application server; subclass must start.
HttpTestCase
public HttpTestCase()
setUp
public void setUp()
throws Exception
- Overrides:
setUp in class LocalDiskRepositoryTestCase
- Throws:
Exception
tearDown
public void tearDown()
throws Exception
- Overrides:
tearDown in class LocalDiskRepositoryTestCase
- Throws:
Exception
createTestRepository
protected TestRepository<FileRepository> createTestRepository()
throws IOException
- Throws:
IOException
toURIish
protected URIish toURIish(String path)
throws URISyntaxException
- Throws:
URISyntaxException
toURIish
protected URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
String name)
throws URISyntaxException
- Throws:
URISyntaxException
getRequests
protected List<AccessEvent> getRequests()
getRequests
protected List<AccessEvent> getRequests(URIish base,
String path)
getRequests
protected List<AccessEvent> getRequests(String path)
fsck
protected static void fsck(Repository db,
RevObject... tips)
throws Exception
- Throws:
Exception
mirror
protected static Set<RefSpec> mirror(String... refs)
push
protected static Collection<RemoteRefUpdate> push(TestRepository from,
RevCommit q)
throws IOException
- Throws:
IOException
loose
public static String loose(URIish base,
AnyObjectId id)
join
public static String join(URIish base,
String path)
Copyright © 2011. All Rights Reserved.