public class CheckoutTest extends CLIRepositoryTestCase
db, trash
author, committer
Constructor and Description |
---|
CheckoutTest() |
Modifier and Type | Method and Description |
---|---|
void |
fileModeTestFileThenFileWithFolderInIndex()
Steps:
Add file 'a'
Commit
Create branch '1'
Modify file 'a'
Commit
Delete file 'a' & replace by folder 'a' in the working tree & index
Checkout branch '1'
|
void |
fileModeTestFileWithFolderInIndex()
Steps:
Add file 'a'
Commit
Create branch '1'
Modify file 'a'
Commit
Delete file 'a' & replace by folder 'a' in the working tree & index
Checkout branch '1'
|
void |
fileModeTestFolderThenFileWithMissingInWorkingTree()
Steps:
Add folder 'a'
Commit
Create branch '1'
Replace folder 'a'by file 'a'
Commit
Delete file 'a' in the working tree
Checkout branch '1'
|
void |
fileModeTestFolderThenMissingWithFileInWorkingTree()
Steps:
Add folder 'a'
Commit
Create branch '1'
Delete folder 'a'
Commit
Add file 'a' in the working tree
Checkout branch '1'
|
void |
fileModeTestFolderWithMissingInWorkingTree()
Steps:
Add file 'a'
Commit
Create branch '1'
Replace file 'a' by folder 'a'
Commit
Delete folder 'a' in the working tree
Checkout branch '1'
|
void |
fileModeTestMissingThenFolderWithFileInWorkingTree()
Steps:
Add file 'b'
Commit
Create branch '1'
Add folder 'a'
Commit
Replace folder 'a' by file 'a' in the working tree
Checkout branch '1'
|
void |
fileModeTestMissingWithFolderInWorkingTree()
Steps:
Add file 'a'
Commit
Create branch '1'
Delete file 'a'
Commit
Add folder 'a' in the working tree
Checkout branch '1'
|
void |
testCheckoutBranch() |
void |
testCheckoutExistingBranchWithConflict() |
void |
testCheckoutHead() |
void |
testCheckoutNewBranch() |
void |
testCheckoutNewBranchOnBranchToBeBorn() |
void |
testCheckoutNewBranchThatAlreadyExists() |
void |
testCheckoutNonExistingBranch() |
void |
testCheckoutPath() |
void |
testCheckoutSelf() |
void |
testCheckoutUnresolvedHead() |
void |
testCheckoutWithMissingWorkingTreeFile()
Steps:
Add file 'a' and 'b'
Commit
Create branch '1'
modify file 'a'
Commit
Delete file 'a' in the working tree
Checkout branch '1'
|
assertArrayOfLinesEquals, cmdString, deleteTrashFile, escapeJava, execute, executeAndPrint, executeAndPrintTestCode, read, setUp, writeTrashFile
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, recursiveDelete, runHook, tearDown, tick, write, write
public void testCheckoutNonExistingBranch() throws Exception
Exception
public void testCheckoutNewBranchThatAlreadyExists() throws Exception
Exception
public void testCheckoutNewBranchOnBranchToBeBorn() throws Exception
Exception
public void testCheckoutUnresolvedHead() throws Exception
Exception
public void testCheckoutExistingBranchWithConflict() throws Exception
Exception
public void testCheckoutWithMissingWorkingTreeFile() throws Exception
The working tree should contain 'a' with FileMode.REGULAR_FILE after the checkout.
Exception
public void fileModeTestMissingThenFolderWithFileInWorkingTree() throws Exception
The working tree should contain 'a' with FileMode.REGULAR_FILE after the checkout.
Exception
public void fileModeTestFolderWithMissingInWorkingTree() throws Exception
The working tree should contain 'a' with FileMode.REGULAR_FILE after the checkout.
Exception
public void fileModeTestMissingWithFolderInWorkingTree() throws Exception
The checkout command should raise an error. The conflicting paths are 'a' and 'a/c'.
Exception
public void fileModeTestFolderThenMissingWithFileInWorkingTree() throws Exception
The checkout command should raise an error. The conflicting path is 'a'.
Exception
public void fileModeTestFolderThenFileWithMissingInWorkingTree() throws Exception
The working tree should contain 'a' with FileMode.TREE after the checkout.
Exception
public void fileModeTestFileThenFileWithFolderInIndex() throws Exception
The checkout command should raise an error. The conflicting path is 'a'.
Exception
public void fileModeTestFileWithFolderInIndex() throws Exception
The checkout command should raise an error. The conflicting paths are 'a' and 'a/c'.
Exception
Copyright © 2014. All rights reserved.