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, 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 testInitRepository() 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 testInitNonEmptyRepository() 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 testInitBareRepository() 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 testInitWithExplicitGitDir() 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 testInitWithOnlyExplicitGitDir() 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 testInitBare_DirAndGitDirMustBeEqual() 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 testInitWithDefaultsNonBare() throws 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
IOException
public void testInitWithDefaultsBare() throws 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
IOException
public void testInitNonBare_GitdirAndDirShouldntBeSame() throws 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
IOException
Copyright © 2016 Eclipse JGit Project. All rights reserved.