public class PushCommandTest
extends org.eclipse.jgit.junit.RepositoryTestCase
| Constructor and Description |
|---|
PushCommandTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
testPrePushHook() |
void |
testPush() |
void |
testPushAfterGC()
Check that missing refs don't cause errors during push
|
void |
testPushRefUpdate()
Check that pushes over file protocol lead to appropriate ref-updates.
|
void |
testPushWithoutPushRefSpec()
Check that only HEAD is pushed if no refspec is given.
|
void |
testPushWithRefSpecFromConfig()
Check that the push refspec is read from config.
|
void |
testTrackingUpdate() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFilesaddRepoToClose, createBareRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, writepublic void testPush()
throws org.eclipse.jgit.api.errors.JGitInternalException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException,
URISyntaxException
org.eclipse.jgit.api.errors.JGitInternalExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionURISyntaxExceptionpublic void testPrePushHook()
throws org.eclipse.jgit.api.errors.JGitInternalException,
IOException,
org.eclipse.jgit.api.errors.GitAPIException,
URISyntaxException
org.eclipse.jgit.api.errors.JGitInternalExceptionIOExceptionorg.eclipse.jgit.api.errors.GitAPIExceptionURISyntaxExceptionpublic void testPushRefUpdate()
throws Exception
Exceptionpublic void testPushWithRefSpecFromConfig()
throws Exception
Exceptionpublic void testPushWithoutPushRefSpec()
throws Exception
ExceptionCopyright © 2016 Eclipse JGit Project. All rights reserved.