public class SymlinksTest extends RepositoryTestCase
ASSUME_UNCHANGED, CONTENT, CONTENT_ID, db, LENGTH, MOD_TIME, SMUDGE, trash
author, committer
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, indexState, lookup, read, resetIndex, setUp, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, read, recursiveDelete, runHook, tearDown, tick, write, write
public void beforeMethod()
public void fileModeTestFileThenSymlink() throws Exception
Exception
public void fileModeTestSymlinkThenFile() throws Exception
Exception
public void fileModeTestFolderThenSymlink() throws Exception
Exception
public void fileModeTestSymlinkThenFolder() throws Exception
Exception
public void fileModeTestMissingThenSymlink() throws Exception
Exception
public void fileModeTestSymlinkThenMissing() throws Exception
Exception
public void createFileSymlinkBeforeTarget() throws Exception
Exception
Copyright © 2015. All rights reserved.