public class InitCommandTest extends RepositoryTestCase
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
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 RepositoryTestCase
Exception
public void testInitRepository() throws IOException, JGitInternalException, GitAPIException
public void testInitNonEmptyRepository() throws IOException, JGitInternalException, GitAPIException
public void testInitBareRepository() throws IOException, JGitInternalException, GitAPIException
public void testInitWithExplicitGitDir() throws IOException, JGitInternalException, GitAPIException
public void testInitWithOnlyExplicitGitDir() throws IOException, JGitInternalException, GitAPIException
public void testInitBare_DirAndGitDirMustBeEqual() throws IOException, JGitInternalException, GitAPIException
public void testInitWithDefaultsNonBare() throws JGitInternalException, GitAPIException, IOException
public void testInitWithDefaultsBare() throws JGitInternalException, GitAPIException, IOException
public void testInitNonBare_GitdirAndDirShouldntBeSame() throws JGitInternalException, GitAPIException, IOException
Copyright © 2016 Eclipse JGit Project. All rights reserved.