public class AddCommandTest extends RepositoryTestCase
| Modifier and Type | Field and Description |
|---|---|
static boolean[] |
sleepBeforeAddOptions |
db, trashASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE| Constructor and Description |
|---|
AddCommandTest() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic void setUp()
throws Exception
setUp in class RepositoryTestCaseExceptionpublic void testAddNothing()
throws GitAPIException
GitAPIExceptionpublic void testAddNonExistingSingleFile()
throws GitAPIException
GitAPIExceptionpublic void testAddExistingSingleFile()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testCleanFilter()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testBuiltinFilters(boolean sleepBeforeAdd)
throws IOException,
GitAPIException,
InterruptedException
public void testBuiltinCleanFilter(boolean sleepBeforeAdd)
throws IOException,
GitAPIException,
InterruptedException
public void testAttributesWithTreeWalkFilter()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAttributesConflictingMatch()
throws Exception
Exceptionpublic void testCleanFilterEnvironment()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testMultipleCleanFilter()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testCommandInjection()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testBadCleanFilter()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testBadCleanFilter2()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testCleanFilterReturning12()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testNotApplicableFilter()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleSmallFileWithNewLine()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleMediumSizeFileWithNewLine()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleBinaryFile()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleFileInSubDir()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleFileTwice()
throws IOException,
GitAPIException
IOExceptionGitAPIExceptionpublic void testAddExistingSingleFileTwiceWithCommit()
throws Exception
Exceptionpublic void testAddRemovedCommittedFile()
throws Exception
Exceptionpublic void testAddWithoutParameterUpdate()
throws Exception
Exceptionpublic void testAddWithParameterUpdate()
throws Exception
Exceptionpublic void testReplaceFileWithDirectory()
throws IOException,
NoFilepatternException,
GitAPIException
public void testReplaceDirectoryWithFile()
throws IOException,
NoFilepatternException,
GitAPIException
public void testReplaceFileByPartOfDirectory()
throws IOException,
NoFilepatternException,
GitAPIException
public void testReplaceDirectoryConflictsWithFile()
throws IOException,
NoFilepatternException,
GitAPIException
public void testAddSubrepoWithDirNoGitlinks()
throws Exception
ExceptionCopyright © 2018 Eclipse JGit Project. All rights reserved.