public abstract class LfsServerTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MiB |
protected FileLfsRepository |
repository |
protected AppServer |
server
In-memory application server; subclass must start.
|
protected FileLfsServlet |
servlet |
| Constructor and Description |
|---|
LfsServerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
createPseudoRandomContentFile(Path f,
long size)
Creates a file with random content, repeatedly writing a random string of
4k length to the file until the file has at least the specified length.
|
protected long |
getContent(AnyLongObjectId id,
Path f) |
protected long |
getContent(String hexId,
Path f) |
Path |
getDir() |
Path |
getTempDirectory() |
protected AnyLongObjectId |
putContent(AnyLongObjectId id,
String s) |
protected LongObjectId |
putContent(Path f) |
protected AnyLongObjectId |
putContent(String s) |
void |
setup() |
void |
tearDown() |
protected static final int MiB
protected AppServer server
protected FileLfsRepository repository
protected FileLfsServlet servlet
public Path getTempDirectory()
public Path getDir()
protected AnyLongObjectId putContent(String s) throws IOException, org.apache.http.client.ClientProtocolException
IOExceptionorg.apache.http.client.ClientProtocolExceptionprotected AnyLongObjectId putContent(AnyLongObjectId id, String s) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionprotected LongObjectId putContent(Path f) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionprotected long getContent(AnyLongObjectId id, Path f) throws IOException
IOExceptionprotected long getContent(String hexId, Path f) throws IOException
IOExceptionprotected long createPseudoRandomContentFile(Path f, long size) throws IOException
f - file to fillsize - size of the file to generateIOExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.