public class EolRepositoryTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Modifier and Type | Field and Description |
|---|---|
protected String |
CONTENT_CRLF |
protected String |
CONTENT_LF |
protected String |
CONTENT_MIXED |
static boolean |
dontSmudgeEntries |
static boolean |
doSmudgeEntries |
static String[] |
hugeContents |
static String[] |
smallContents |
| Constructor and Description |
|---|
EolRepositoryTest(String[] testContent,
boolean smudgeEntries) |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic static boolean doSmudgeEntries
public static boolean dontSmudgeEntries
public static String[] smallContents
public static String[] hugeContents
protected String CONTENT_CRLF
protected String CONTENT_LF
protected String CONTENT_MIXED
public EolRepositoryTest(String[] testContent, boolean smudgeEntries)
public void checkEntryContent(org.eclipse.jgit.api.EolRepositoryTest.ActualEntry entry,
String fileContent,
String indexContent)
public void test_ConfigAutoCRLF_false()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_input()
throws Exception
Exceptionpublic void test_ConfigEOL_native_windows()
throws Exception
Exceptionpublic void test_ConfigEOL_native_xnix()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_false_ConfigEOL_lf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_false_ConfigEOL_native()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_true_ConfigEOL_lf()
throws Exception
Exceptionpublic void test_switchToBranchWithTextAttributes()
throws Exception
Exceptionpublic void test_switchToBranchWithBinaryAttributes()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_input_ConfigEOL_lf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_true_GlobalEOL_lf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_false_GlobalEOL_lf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_input_GlobalEOL_lf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_true_GlobalEOL_crlf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_false_GlobalEOL_crlf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_input_GlobalEOL_crlf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_true_GlobalEOL_lf_InfoEOL_crlf()
throws Exception
Exceptionpublic void test_ConfigAutoCRLF_false_GlobalEOL_crlf_InfoEOL_lf()
throws Exception
Exceptionpublic void test_GlobalEOL_lf_RootEOL_crlf()
throws Exception
Exceptionpublic void test_GlobalEOL_lf_InfoEOL_crlf_RootEOL_lf()
throws Exception
Exceptionpublic void test_GlobalEOL_lf_InfoEOL_crlf_RootEOL_unspec()
throws Exception
Exceptionpublic void test_GlobalEOL_lf_InfoEOL_unspec_RootEOL_crlf()
throws Exception
Exceptionprotected org.eclipse.jgit.revwalk.RevCommit gitCommit(org.eclipse.jgit.api.Git git,
String msg)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionprotected void gitAdd(org.eclipse.jgit.api.Git git,
String path)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionprotected void gitResetHard(org.eclipse.jgit.api.Git git)
throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionprotected void gitCheckout(org.eclipse.jgit.api.Git git,
String revstr)
throws org.eclipse.jgit.api.errors.GitAPIException,
org.eclipse.jgit.errors.RevisionSyntaxException,
IOException
org.eclipse.jgit.api.errors.GitAPIExceptionorg.eclipse.jgit.errors.RevisionSyntaxExceptionIOExceptionCopyright © 2017 Eclipse JGit Project. All rights reserved.