public class CloneCommandTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Constructor and Description |
|---|
CloneCommandTest() |
| Modifier and Type | Method and Description |
|---|---|
static String |
allRefNames(List<Ref> refs) |
static org.eclipse.jgit.transport.RefSpec |
fetchRefSpec(Repository r) |
void |
setUp() |
void |
testBareCloneRepository() |
void |
testBareCloneRepositoryCustomRemote() |
void |
testBareCloneRepositoryNullRemote() |
void |
testCloneRepository() |
void |
testCloneRepositoryCustomRemote() |
void |
testCloneRepositoryExplicitGitDir() |
void |
testCloneRepositoryExplicitGitDirBare() |
void |
testCloneRepositoryExplicitGitDirNonStd() |
void |
testCloneRepositoryOnlyOneBranch() |
void |
testCloneRepositoryWhenDestinationDirectoryExistsAndIsNotEmpty() |
void |
testCloneRepositoryWithBranch() |
void |
testCloneRepositoryWithBranchShortName() |
void |
testCloneRepositoryWithMultipleHeadBranches() |
void |
testCloneRepositoryWithNestedSubmodules() |
void |
testCloneRepositoryWithSubmodules() |
void |
testCloneRepositoryWithTagName() |
void |
testCloneWithAutoSetupRebase() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic void setUp()
throws Exception
setUp in class org.eclipse.jgit.junit.RepositoryTestCaseExceptionpublic void testCloneRepository()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException,
URISyntaxException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionURISyntaxExceptionpublic void testCloneRepositoryExplicitGitDir()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testCloneRepositoryExplicitGitDirNonStd()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testCloneRepositoryExplicitGitDirBare()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testBareCloneRepository()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException,
URISyntaxException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionURISyntaxExceptionpublic void testCloneRepositoryCustomRemote()
throws Exception
Exceptionpublic void testBareCloneRepositoryCustomRemote()
throws Exception
Exceptionpublic void testBareCloneRepositoryNullRemote()
throws Exception
Exceptionpublic static org.eclipse.jgit.transport.RefSpec fetchRefSpec(Repository r) throws URISyntaxException
URISyntaxExceptionpublic void testCloneRepositoryWithBranch()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testCloneRepositoryWithBranchShortName()
throws Exception
Exceptionpublic void testCloneRepositoryWithTagName()
throws Exception
Exceptionpublic void testCloneRepositoryOnlyOneBranch()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testCloneRepositoryWhenDestinationDirectoryExistsAndIsNotEmpty()
throws IOException,
org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException
IOExceptionorg.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testCloneRepositoryWithMultipleHeadBranches()
throws Exception
Exceptionpublic void testCloneRepositoryWithSubmodules()
throws Exception
Exceptionpublic void testCloneRepositoryWithNestedSubmodules()
throws Exception
ExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.