org.eclipse.jgit.junit.http
Class HttpTestCase

java.lang.Object
  extended by org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
      extended by org.eclipse.jgit.junit.http.HttpTestCase

public abstract class HttpTestCase
extends LocalDiskRepositoryTestCase

Base class for HTTP related transport testing.


Field Summary
protected static String master
           
protected  AppServer server
          In-memory application server; subclass must start.
 
Fields inherited from class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
author, committer
 
Constructor Summary
HttpTestCase()
           
 
Method Summary
protected  TestRepository<FileRepository> 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)
           
 
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
 

Field Detail

master

protected static final String master
See Also:
Constant Field Values

server

protected AppServer server
In-memory application server; subclass must start.

Constructor Detail

HttpTestCase

public HttpTestCase()
Method Detail

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.