public class InitCommandTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Constructor and Description |
|---|
InitCommandTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testInitBare_DirAndGitDirMustBeEqual() |
void |
testInitBareRepository() |
void |
testInitNonBare_GitdirAndDirShouldntBeSame() |
void |
testInitNonEmptyRepository() |
void |
testInitRepository() |
void |
testInitWithDefaultsBare() |
void |
testInitWithDefaultsNonBare() |
void |
testInitWithExplicitGitDir() |
void |
testInitWithOnlyExplicitGitDir() |
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 testInitRepository()
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 testInitNonEmptyRepository()
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 testInitBareRepository()
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 testInitWithExplicitGitDir()
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 testInitWithOnlyExplicitGitDir()
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 testInitBare_DirAndGitDirMustBeEqual()
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 testInitWithDefaultsNonBare()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException,
IOException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionpublic void testInitWithDefaultsBare()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException,
IOException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionpublic void testInitNonBare_GitdirAndDirShouldntBeSame()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.api.errors.GitAPIException,
IOException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionIOExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.