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.
Field Summary |
protected static java.lang.String |
master
|
protected AppServer |
server
In-memory application server; subclass must start. |
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 java.lang.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 java.lang.Exception
- Overrides:
setUp
in class LocalDiskRepositoryTestCase
- Throws:
java.lang.Exception
tearDown
public void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class LocalDiskRepositoryTestCase
- Throws:
java.lang.Exception
createTestRepository
protected TestRepository<FileRepository> createTestRepository()
throws java.io.IOException
- Throws:
java.io.IOException
toURIish
protected URIish toURIish(java.lang.String path)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
toURIish
protected URIish toURIish(org.eclipse.jetty.servlet.ServletContextHandler app,
java.lang.String name)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getRequests
protected java.util.List<AccessEvent> getRequests()
getRequests
protected java.util.List<AccessEvent> getRequests(URIish base,
java.lang.String path)
getRequests
protected java.util.List<AccessEvent> getRequests(java.lang.String path)
fsck
protected static void fsck(Repository db,
RevObject... tips)
throws java.lang.Exception
- Throws:
java.lang.Exception
mirror
protected static java.util.Set<RefSpec> mirror(java.lang.String... refs)
push
protected static java.util.Collection<RemoteRefUpdate> push(TestRepository from,
RevCommit q)
throws java.io.IOException
- Throws:
java.io.IOException
loose
public static java.lang.String loose(URIish base,
AnyObjectId id)
join
public static java.lang.String join(URIish base,
java.lang.String path)
Copyright © 2011. All Rights Reserved.