Skip navigation links
A B C D E F G I J L M N O P R S T U W 

A

add(String, String) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
add(String, RevBlob) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
addRepoToClose(Repository) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Adds a repository to the list of repositories which is closed at the end of the tests
amend(AnyObjectId) - Method in class org.eclipse.jgit.junit.TestRepository
Amend an existing commit.
amendRef(String) - Method in class org.eclipse.jgit.junit.TestRepository
Amend an existing ref.
apply(Statement, Description) - Method in class org.eclipse.jgit.junit.RepeatRule
Assert - Class in org.eclipse.jgit.junit
Assertion class
Assert() - Constructor for class org.eclipse.jgit.junit.Assert
 
assertEquals(boolean, boolean) - Static method in class org.eclipse.jgit.junit.Assert
Assert booleans are equal
assertEquals(String, boolean, boolean) - Static method in class org.eclipse.jgit.junit.Assert
Assert booleans are equal
assertEquals(byte[], byte[]) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Assert byte arrays are equal
assertEqualsFile(File, File) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Assert files are equal
ASSUME_UNCHANGED - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant ASSUME_UNCHANGED=32
author - Variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
A fake (but stable) identity for author fields in the test.
AUTHOR - Static variable in class org.eclipse.jgit.junit.TestRepository
Constant AUTHOR="J.
author(PersonIdent) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
author() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
AUTHOR_EMAIL - Static variable in class org.eclipse.jgit.junit.TestRepository
Constant AUTHOR_EMAIL="jauthor@example.com"

B

beginTask(String, int) - Method in class org.eclipse.jgit.junit.StrictWorkMonitor
blob(String) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new blob object in the repository.
blob(byte[]) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new blob object in the repository.
branch(String) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new branch builder for this repository.

C

check(Repository, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Check if file exists
check(String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Check if file exists
checkFile(File, String) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Check content of a file.
checkoutBranch(String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Checkout a branch
cherryPick(AnyObjectId) - Method in class org.eclipse.jgit.junit.TestRepository
Cherry-pick a commit onto HEAD.
child() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
CLASSPATH_TO_RESOURCES - Static variable in class org.eclipse.jgit.junit.JGitTestUtil
Constant CLASSPATH_TO_RESOURCES="org/eclipse/jgit/test/resources/"
clearProperties() - Method in class org.eclipse.jgit.junit.MockSystemReader
Clear properties
close() - Method in class org.eclipse.jgit.junit.TestRepository
Closes the underlying Repository object and any other internal resources.
commit() - Method in class org.eclipse.jgit.junit.TestRepository.BranchBuilder
 
commit(RevCommit...) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new commit.
commit(RevTree, RevCommit...) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new commit.
commit(int, RevCommit...) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new commit.
commit(int, RevTree, RevCommit...) - Method in class org.eclipse.jgit.junit.TestRepository
Create a new commit.
commit() - Method in class org.eclipse.jgit.junit.TestRepository
Create commit builder
commitFile(String, String, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Commit a file with the specified contents on the specified branch, creating the branch if it didn't exist before.
committer - Variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
A fake (but stable) identity for committer fields in the test.
committer(PersonIdent) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
committer() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
COMMITTER - Static variable in class org.eclipse.jgit.junit.TestRepository
Constant COMMITTER="J.
COMMITTER_EMAIL - Static variable in class org.eclipse.jgit.junit.TestRepository
Constant COMMITTER_EMAIL="jcommitter@example.com"
concat(byte[]...) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Concatenate byte arrays.
CONTENT - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant CONTENT=16
CONTENT_ID - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant CONTENT_ID=8
copyFile(File, File) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Copy a file
copyTestResource(String, File) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Copy test resource.
create() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
createBareRepository() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Creates a new empty bare repository.
createBranch(ObjectId, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Create a branch
createEntry(String, FileMode) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Create DirCacheEntry
createEntry(String, FileMode, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Create DirCacheEntry
createEntry(String, FileMode, int, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Create DirCacheEntry
createRepository(boolean) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Creates a new empty repository.
createRepository(boolean, boolean) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
createTempDirectory(String) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Creates a unique directory for a test
createTempFile() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Allocates a new unique file path that does not exist.
createUniqueTestGitDir(boolean) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Creates a new unique directory for a test repository
createWorkRepository() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Creates a new empty repository within a new empty working directory.

D

db - Variable in class org.eclipse.jgit.junit.RepositoryTestCase
Test repository, initialized for this test case.
delete() - Method in class org.eclipse.jgit.junit.TestRepository.BranchBuilder
Delete this branch.
delete(String) - Method in class org.eclipse.jgit.junit.TestRepository
Delete a reference.
deleteTrashFile(Repository, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Delete a trash file.
deleteTrashFile(String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Delete a trash file

E

edit(DirCacheEditor.PathEdit) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
endTask() - Method in class org.eclipse.jgit.junit.StrictWorkMonitor

F

file(String, RevBlob) - Method in class org.eclipse.jgit.junit.TestRepository
Construct a regular file mode tree entry.
fsck(RevObject...) - Method in class org.eclipse.jgit.junit.TestRepository
Run consistency checks against the object database.
fsTick(File) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Waits until it is guaranteed that a subsequent file modification has a younger modification timestamp than the modification timestamp of the given file.

G

get(RevTree, String) - Method in class org.eclipse.jgit.junit.TestRepository
Lookup an entry stored in a tree, failing if not present.
getCeilings() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Get list of ceiling directories
getClock() - Method in class org.eclipse.jgit.junit.MockSystemReader
getCurrentTime() - Method in class org.eclipse.jgit.junit.MockSystemReader
getDate() - Method in class org.eclipse.jgit.junit.TestRepository
Get date
getDateTimeInstance(int, int) - Method in class org.eclipse.jgit.junit.MockSystemReader
getenv(String) - Method in class org.eclipse.jgit.junit.MockSystemReader
getHostname() - Method in class org.eclipse.jgit.junit.MockSystemReader
getLocale() - Method in class org.eclipse.jgit.junit.MockSystemReader
getName() - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Get name of current test by inspecting stack trace
getProperty(String) - Method in class org.eclipse.jgit.junit.MockSystemReader
getRepository() - Method in class org.eclipse.jgit.junit.TestRepository
Get repository
getRevWalk() - Method in class org.eclipse.jgit.junit.TestRepository
Get RevWalk
getSimpleDateFormat(String) - Method in class org.eclipse.jgit.junit.MockSystemReader
getTemporaryDirectory() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Get temporary directory.
getTestResourceFile(String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Get test resource file.
getTimezone(long) - Method in class org.eclipse.jgit.junit.MockSystemReader
getTimeZone() - Method in class org.eclipse.jgit.junit.MockSystemReader
getTimeZone() - Method in class org.eclipse.jgit.junit.TestRepository
Get timezone
git() - Method in class org.eclipse.jgit.junit.TestRepository
Return Git API wrapper

I

ident(PersonIdent) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
indexState(Repository, int) - Static method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Represent the state of the index in one String.
indexState(int) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Represent the state of the index in one String.
insertChangeId() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
insertChangeId(String) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
isCancelled() - Method in class org.eclipse.jgit.junit.StrictWorkMonitor

J

JGitTestUtil - Class in org.eclipse.jgit.junit
Abstract test util class

L

LENGTH - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant LENGTH=4
lightweightTag(String, ObjectId) - Method in class org.eclipse.jgit.junit.TestRepository
Tag an object using a lightweight tag.
LocalDiskRepositoryTestCase - Class in org.eclipse.jgit.junit
JUnit TestCase with specialized support for temporary local repository.
LocalDiskRepositoryTestCase() - Constructor for class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
 
lookup(Object, String, Map<Object, String>) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Helper method to map arbitrary objects to user-defined names.

M

message(String) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
message() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
mockSystemReader - Variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
A SystemReader used to coordinate time, envars, etc.
MockSystemReader - Class in org.eclipse.jgit.junit
Mock SystemReader for tests.
MockSystemReader() - Constructor for class org.eclipse.jgit.junit.MockSystemReader
Constructor for MockSystemReader
MOD_TIME - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant MOD_TIME=1
MonotonicFakeClock - Class in org.eclipse.jgit.junit.time
Fake MonotonicClock for testing code that uses Clock.
MonotonicFakeClock() - Constructor for class org.eclipse.jgit.junit.time.MonotonicFakeClock
 

N

nextBytes(int) - Method in class org.eclipse.jgit.junit.TestRng
Get the next cnt bytes of random data.
nextInt() - Method in class org.eclipse.jgit.junit.TestRng
Next int
noFiles() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
noParents() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 

O

openSystemConfig(Config, FS) - Method in class org.eclipse.jgit.junit.MockSystemReader
openUserConfig(Config, FS) - Method in class org.eclipse.jgit.junit.MockSystemReader
org.eclipse.jgit.junit - package org.eclipse.jgit.junit
 
org.eclipse.jgit.junit.time - package org.eclipse.jgit.junit.time
 

P

packAndPrune() - Method in class org.eclipse.jgit.junit.TestRepository
Pack all reachable objects in the repository into a single pack file.
parent(RevCommit) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
parents() - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
parseBody(T) - Method in class org.eclipse.jgit.junit.TestRepository
Ensure the body of the given object has been parsed.
propose() - Method in class org.eclipse.jgit.junit.time.MonotonicFakeClock

R

read(File) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Fully read a UTF-8 file and return as a string.
read(Repository, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Read a file's content
read(File) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Read a file's content
read(String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Read content of a file
recursiveDelete(File) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Recursively delete a directory, failing the test if the delete fails.
Repeat - Annotation Type in org.eclipse.jgit.junit
Annotation enabling to run tests repeatedly
RepeatedTestException(String, Throwable) - Constructor for exception org.eclipse.jgit.junit.RepeatRule.RepeatedTestException
 
RepeatRule - Class in org.eclipse.jgit.junit
TestRule which enables to run the same JUnit test repeatedly.
RepeatRule() - Constructor for class org.eclipse.jgit.junit.RepeatRule
 
RepeatRule.RepeatedTestException - Exception in org.eclipse.jgit.junit
 
RepositoryTestCase - Class in org.eclipse.jgit.junit
Base class for most JGit unit tests.
RepositoryTestCase() - Constructor for class org.eclipse.jgit.junit.RepositoryTestCase
 
reset(AnyObjectId) - Method in class org.eclipse.jgit.junit.TestRepository
Soft-reset HEAD to a detached state.
reset(String) - Method in class org.eclipse.jgit.junit.TestRepository
Soft-reset HEAD to a different commit.
resetIndex(FileTreeIterator) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Resets the index to represent exactly some filesystem content.
rm(String) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
runHook(Repository, File, String...) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Run a hook script in the repository, returning the exit status.

S

setAuthorAndCommitter(CommitBuilder) - Method in class org.eclipse.jgit.junit.TestRepository
Set the author and committer using TestRepository.getDate().
setCurrentPlatform() - Method in class org.eclipse.jgit.junit.MockSystemReader
Assign some properties for the currently executing platform
setProperty(String, String) - Method in class org.eclipse.jgit.junit.MockSystemReader
Set a property
setTopLevelTree(ObjectId) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
setUnix() - Method in class org.eclipse.jgit.junit.MockSystemReader
Emulate Unix
setUp() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Setup test
setUp() - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Setup test
setWindows() - Method in class org.eclipse.jgit.junit.MockSystemReader
Emulate Windows
slashify(String) - Static method in class org.eclipse.jgit.junit.RepositoryTestCase
Replaces '\' by '/'
SMUDGE - Static variable in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Constant SMUDGE=2
start(int) - Method in class org.eclipse.jgit.junit.StrictWorkMonitor
StrictWorkMonitor - Class in org.eclipse.jgit.junit
Strict work monitor
StrictWorkMonitor() - Constructor for class org.eclipse.jgit.junit.StrictWorkMonitor
 

T

tag(String, RevObject) - Method in class org.eclipse.jgit.junit.TestRepository
Construct an annotated tag object pointing at another object.
tearDown() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Tear down the test
TestRepository<R extends Repository> - Class in org.eclipse.jgit.junit
Wrapper to make creating test data easier.
TestRepository(R) - Constructor for class org.eclipse.jgit.junit.TestRepository
Wrap a repository with test building tools.
TestRepository(R, RevWalk) - Constructor for class org.eclipse.jgit.junit.TestRepository
Wrap a repository with test building tools.
TestRepository(R, RevWalk, MockSystemReader) - Constructor for class org.eclipse.jgit.junit.TestRepository
Wrap a repository with test building tools.
TestRepository.BranchBuilder - Class in org.eclipse.jgit.junit
Helper to build a branch with one or more commits
TestRepository.CommitBuilder - Class in org.eclipse.jgit.junit
Helper to generate a commit.
TestRng - Class in org.eclipse.jgit.junit
Toy RNG to ensure we get predictable numbers during unit tests.
TestRng(String) - Constructor for class org.eclipse.jgit.junit.TestRng
Create a new random number generator, seeded by a string.
tick() - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
tick(int) - Method in class org.eclipse.jgit.junit.MockSystemReader
Adjusts the current time in seconds.
tick(int) - Method in class org.eclipse.jgit.junit.TestRepository.CommitBuilder
 
tick(int) - Method in class org.eclipse.jgit.junit.TestRepository
Adjust the current time that will used by the next commit.
tick(long, TimeUnit) - Method in class org.eclipse.jgit.junit.time.MonotonicFakeClock
Advance the time returned by future calls to propose().
trash - Variable in class org.eclipse.jgit.junit.RepositoryTestCase
Working directory of RepositoryTestCase.db.
tree(DirCacheEntry...) - Method in class org.eclipse.jgit.junit.TestRepository
Construct a tree from a specific listing of file entries.

U

update(int) - Method in class org.eclipse.jgit.junit.StrictWorkMonitor
update(TestRepository<R>.CommitBuilder) - Method in class org.eclipse.jgit.junit.TestRepository.BranchBuilder
Forcefully update this branch to a particular commit.
update(RevCommit) - Method in class org.eclipse.jgit.junit.TestRepository.BranchBuilder
Forcefully update this branch to a particular commit.
update(String, TestRepository<R>.CommitBuilder) - Method in class org.eclipse.jgit.junit.TestRepository
Update a reference to point to an object.
update(String, T) - Method in class org.eclipse.jgit.junit.TestRepository
Update a reference to point to an object.
updateServerInfo() - Method in class org.eclipse.jgit.junit.TestRepository
Update the dumb client server info files.

W

write(File, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Write a string as a UTF-8 file.
write(String) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Create a string to a UTF-8 temporary file and return the path.
write(File, String) - Method in class org.eclipse.jgit.junit.LocalDiskRepositoryTestCase
Write a string as a UTF-8 file.
writeLink(Repository, String, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Write a symbolic link
writeLink(String, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Create a symbolic link
writeTrashFile(Repository, String, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Write a trash file.
writeTrashFile(Repository, String, String, String) - Static method in class org.eclipse.jgit.junit.JGitTestUtil
Write a trash file.
writeTrashFile(String, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Write a trash file
writeTrashFile(String, String, String) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Write a trash file
writeTrashFiles(boolean, String...) - Method in class org.eclipse.jgit.junit.RepositoryTestCase
Writes a number of files in the working tree.
A B C D E F G I J L M N O P R S T U W 

Copyright © 2019 Eclipse JGit Project. All rights reserved.