public class ResetCommandTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Constructor and Description |
|---|
ResetCommandTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setupRepository() |
void |
testHardReset() |
void |
testHardResetAfterSquashMerge() |
void |
testHardResetOnTag() |
void |
testHardResetOnUnbornBranch() |
void |
testMixedReset() |
void |
testMixedResetRetainsSizeAndModifiedTime() |
void |
testMixedResetWithUnmerged() |
void |
testPathsReset() |
void |
testPathsResetOnDirs() |
void |
testPathsResetOnUnbornBranch() |
void |
testPathsResetToNonexistingRef() |
void |
testPathsResetWithRef() |
void |
testPathsResetWithUnmerged() |
void |
testResetDefaultMode() |
void |
testResetToNonexistingHEAD() |
void |
testSoftReset() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, indexState, lookup, read, resetIndex, setUp, writeTrashFile, writeTrashFile, writeTrashFilespublic void setupRepository()
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 testHardReset()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.errors.AmbiguousObjectException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.errors.AmbiguousObjectExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testResetToNonexistingHEAD()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.errors.AmbiguousObjectException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.errors.AmbiguousObjectExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testSoftReset()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.errors.AmbiguousObjectException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.errors.AmbiguousObjectExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testMixedReset()
throws org.eclipse.jgit.api.errors.JGitInternalException,
org.eclipse.jgit.errors.AmbiguousObjectException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.JGitInternalExceptionorg.eclipse.jgit.errors.AmbiguousObjectExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionpublic void testMixedResetRetainsSizeAndModifiedTime()
throws Exception
Exceptionpublic void testMixedResetWithUnmerged()
throws Exception
Exceptionpublic void testPathsResetWithUnmerged()
throws Exception
Exceptionpublic void testPathsResetOnUnbornBranch()
throws Exception
Exceptionpublic void testPathsResetToNonexistingRef()
throws Exception
Exceptionpublic void testHardResetAfterSquashMerge()
throws Exception
ExceptionCopyright © 2015 Eclipse JGit Project. All rights reserved.