public class SymlinksTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Constructor and Description |
|---|
SymlinksTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeMethod() |
void |
createDirSymlinkBeforeTarget() |
void |
createFileSymlinkBeforeTarget() |
void |
createSymlinkAfterTarget() |
void |
fileModeTestFileThenSymlink()
Steps: 1.Add file 'a' 2.Commit 3.Create branch '1' 4.Replace file 'a' by
symlink 'a' 5.Commit 6.Checkout branch '1'
The working tree should contain 'a' with FileMode.REGULAR_FILE after the
checkout.
|
void |
fileModeTestFolderThenSymlink()
Steps: 1.Add folder 'a' 2.Commit 3.Create branch '1' 4.Replace folder 'a'
by symlink 'a' 5.Commit 6.Checkout branch '1'
The working tree should contain 'a' with FileMode.TREE after the
checkout.
|
void |
fileModeTestMissingThenSymlink()
Steps: 1.Add file 'b' 2.Commit 3.Create branch '1' 4.Add symlink 'a'
5.Commit 6.Checkout branch '1'
The working tree should not contain 'a' -> FileMode.MISSING after the
checkout.
|
void |
fileModeTestSymlinkThenFile()
Steps: 1.Add symlink 'a' 2.Commit 3.Create branch '1' 4.Replace symlink
'a' by file 'a' 5.Commit 6.Checkout branch '1'
The working tree should contain 'a' with FileMode.SYMLINK after the
checkout.
|
void |
fileModeTestSymlinkThenFolder()
Steps: 1.Add symlink 'a' 2.Commit 3.Create branch '1' 4.Replace symlink
'a' by folder 'a' 5.Commit 6.Checkout branch '1'
The working tree should contain 'a' with FileMode.SYMLINK after the
checkout.
|
void |
fileModeTestSymlinkThenMissing()
Steps: 1.Add symlink 'a' 2.Commit 3.Create branch '1' 4.Delete symlink
'a' 5.Commit 6.Checkout branch '1'
The working tree should contain 'a' with FileMode.SYMLINK after the
checkout.
|
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic void beforeMethod()
public void fileModeTestFileThenSymlink()
throws Exception
Exceptionpublic void fileModeTestSymlinkThenFile()
throws Exception
Exceptionpublic void fileModeTestFolderThenSymlink()
throws Exception
Exceptionpublic void fileModeTestSymlinkThenFolder()
throws Exception
Exceptionpublic void fileModeTestMissingThenSymlink()
throws Exception
Exceptionpublic void fileModeTestSymlinkThenMissing()
throws Exception
Exceptionpublic void createFileSymlinkBeforeTarget()
throws Exception
ExceptionCopyright © 2018 Eclipse JGit Project. All rights reserved.