public class AddCommandTest extends RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
static boolean[] |
sleepBeforeAddOptions |
db, trash
ASSUME_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, writeTrashFiles
addRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public void setUp() throws Exception
setUp
in class RepositoryTestCase
Exception
public void testAddNothing() throws GitAPIException
GitAPIException
public void testAddNonExistingSingleFile() throws GitAPIException
GitAPIException
public void testAddExistingSingleFile() throws IOException, GitAPIException
IOException
GitAPIException
public void testCleanFilter() throws IOException, GitAPIException
IOException
GitAPIException
public void testBuiltinFilters(boolean sleepBeforeAdd) throws IOException, GitAPIException, InterruptedException
public void testBuiltinCleanFilter(boolean sleepBeforeAdd) throws IOException, GitAPIException, InterruptedException
public void testAttributesWithTreeWalkFilter() throws IOException, GitAPIException
IOException
GitAPIException
public void testCleanFilterEnvironment() throws IOException, GitAPIException
IOException
GitAPIException
public void testMultipleCleanFilter() throws IOException, GitAPIException
IOException
GitAPIException
public void testCommandInjection() throws IOException, GitAPIException
IOException
GitAPIException
public void testBadCleanFilter() throws IOException, GitAPIException
IOException
GitAPIException
public void testBadCleanFilter2() throws IOException, GitAPIException
IOException
GitAPIException
public void testCleanFilterReturning12() throws IOException, GitAPIException
IOException
GitAPIException
public void testNotApplicableFilter() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleSmallFileWithNewLine() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleMediumSizeFileWithNewLine() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleBinaryFile() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleFileInSubDir() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleFileTwice() throws IOException, GitAPIException
IOException
GitAPIException
public void testAddExistingSingleFileTwiceWithCommit() throws Exception
Exception
public void testAddRemovedCommittedFile() throws Exception
Exception
public void testAddWithoutParameterUpdate() throws Exception
Exception
public void testAddWithParameterUpdate() throws Exception
Exception
public 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
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.