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, 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 org.eclipse.jgit.junit.RepositoryTestCase
Exception
public void testCloneRepository() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException, URISyntaxException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
URISyntaxException
public void testCloneRepositoryExplicitGitDir() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testCloneRepositoryExplicitGitDirNonStd() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testCloneRepositoryExplicitGitDirBare() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testBareCloneRepository() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException, URISyntaxException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
URISyntaxException
public void testCloneRepositoryCustomRemote() throws Exception
Exception
public void testBareCloneRepositoryCustomRemote() throws Exception
Exception
public void testBareCloneRepositoryNullRemote() throws Exception
Exception
public static org.eclipse.jgit.transport.RefSpec fetchRefSpec(Repository r) throws URISyntaxException
URISyntaxException
public void testCloneRepositoryWithBranch() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testCloneRepositoryWithBranchShortName() throws Exception
Exception
public void testCloneRepositoryWithTagName() throws Exception
Exception
public void testCloneRepositoryOnlyOneBranch() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testCloneRepositoryWhenDestinationDirectoryExistsAndIsNotEmpty() throws IOException, org.eclipse.jgit.api.errors.JGitInternalException, org.eclipse.jgit.api.errors.GitAPIException
IOException
org.eclipse.jgit.api.errors.JGitInternalException
org.eclipse.jgit.api.errors.GitAPIException
public void testCloneRepositoryWithMultipleHeadBranches() throws Exception
Exception
public void testCloneRepositoryWithSubmodules() throws Exception
Exception
public void testCloneRepositoryWithNestedSubmodules() throws Exception
Exception
Copyright © 2016 Eclipse JGit Project. All rights reserved.