public class DirCacheCheckoutTest extends RepositoryTestCase
| Modifier and Type | Field and Description |
|---|---|
protected ObjectId |
theHead |
protected ObjectId |
theMerge |
db, trashASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE| Constructor and Description |
|---|
DirCacheCheckoutTest() |
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 testResetHard()
throws IOException,
NoFilepatternException,
GitAPIException
public void testResetHardFromIndexEntryWithoutFileToTreeWithoutFile()
throws Exception
WorkDir: Empty
Index: f/g
Merge: x
Exceptionpublic void testInitialCheckout()
throws Exception
Exceptionpublic void testRules1thru3_NoIndexEntry()
throws IOException
IOExceptionprotected void go()
throws IllegalStateException,
IOException
IllegalStateExceptionIOExceptionpublic void testRules4thru13_IndexEntryNotInHead()
throws IOException
IOExceptionpublic void testDirectoryFileSimple()
throws IOException
IOExceptionpublic void testDirectoryFileConflicts_1()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_2()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_3()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_4()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_5()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_5b()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_6()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_6b()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_7()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_8()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_9()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_10()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_11()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_12()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_13()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_14()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_15()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_15b()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_16()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_17()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_18()
throws Exception
Exceptionpublic void testDirectoryFileConflicts_19()
throws Exception
Exceptionprotected void assertConflict(String s)
protected void assertUpdated(String s)
protected void assertRemoved(String s)
protected void assertNoConflicts()
protected void doit(HashMap<String,String> h, HashMap<String,String> m, HashMap<String,String> i) throws IOException
IOExceptionpublic void testUntrackedConflicts()
throws IOException
IOExceptionpublic void testCloseNameConflictsX0()
throws IOException
IOExceptionpublic void testCloseNameConflicts1()
throws IOException
IOExceptionpublic void testCheckoutHierarchy()
throws IOException
IOExceptionpublic void testCheckoutOutChanges()
throws IOException
IOExceptionpublic void testCheckoutChangeLinkToEmptyDir()
throws Exception
Exceptionpublic void testCheckoutChangeLinkToEmptyDirs()
throws Exception
Exceptionpublic void testCheckoutChangeLinkToNonEmptyDirs()
throws Exception
Exceptionpublic void testCheckoutChangeLinkToNonEmptyDirsAndNewIndexEntry()
throws Exception
Exceptionpublic void testCheckoutChangeFileToEmptyDir()
throws Exception
Exceptionpublic void testCheckoutChangeFileToEmptyDirs()
throws Exception
Exceptionpublic void testCheckoutChangeFileToNonEmptyDirs()
throws Exception
Exceptionpublic void testCheckoutChangeFileToNonEmptyDirsAndNewIndexEntry()
throws Exception
Exceptionpublic void testCheckoutOutChangesAutoCRLFfalse()
throws IOException
IOExceptionpublic void testCheckoutOutChangesAutoCRLFInput()
throws IOException
IOExceptionpublic void testCheckoutOutChangesAutoCRLFtrue()
throws IOException
IOExceptionpublic void testCheckoutOutChangesAutoCRLFtrueBinary()
throws IOException
IOExceptionpublic void testCheckoutUncachedChanges()
throws IOException
IOExceptionpublic void testDontOverwriteDirtyFile()
throws IOException
IOExceptionpublic void testDontOverwriteEmptyFolder()
throws IOException
IOExceptionpublic void testOverwriteUntrackedIgnoredFile()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testOverwriteUntrackedFileModeChange()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testOverwriteUntrackedLinkModeChange()
throws Exception
Exceptionpublic void testFileModeChangeWithNoContentChangeUpdate()
throws Exception
Exceptionpublic void testFileModeChangeAndContentChangeConflict()
throws Exception
Exceptionpublic void testDirtyFileModeEqualHeadMerge()
throws Exception
Exceptionpublic void testDirtyFileModeEqualIndexMerge()
throws Exception
Exceptionpublic void testFileModeChangeAndContentChangeNoConflict()
throws Exception
Exceptionpublic void testMultipleContentConflicts()
throws Exception
Exceptionpublic void testFolderFileAndContentConflicts()
throws Exception
Exceptionpublic void assertWorkDir(Map<String,String> i) throws CorruptObjectException, IOException
CorruptObjectExceptionIOExceptionCopyright © 2017 Eclipse JGit Project. All rights reserved.