Class GitSshBranchCommandTckTest
- java.lang.Object
- 
- org.apache.maven.scm.PlexusJUnit4TestCase
- 
- org.apache.maven.scm.ScmTestCase
- 
- org.apache.maven.scm.ScmTckTestCase
- 
- org.apache.maven.scm.tck.command.branch.BranchCommandTckTest
- 
- org.apache.maven.scm.provider.git.command.branch.GitSshBranchCommandTckTest
 
 
 
 
 
- 
 public abstract class GitSshBranchCommandTckTest extends BranchCommandTckTest 
- 
- 
Field SummaryFields Modifier and Type Field Description protected GitSshServergitSshServerorg.junit.rules.TemporaryFoldertmpDirectory- 
Fields inherited from class org.apache.maven.scm.ScmTestCaseGMT_TIME_ZONE
 - 
Fields inherited from class org.apache.maven.scm.PlexusJUnit4TestCasetestName
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedGitSshBranchCommandTckTest()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CheckOutScmResultcheckOut(File workingDirectory, ScmRepository repository)Convenience method to check out files from the repository.voidconfigureCredentials(ScmRepository repository, String passphrase)protected abstract StringgetScmProvider()StringgetScmUrl()voidinitRepo()Initialize repository at theScmTckTestCase.getScmUrl()location with the files inScmTckTestCase.getScmFileNames()voidremoveRepo()This method is available to those SCM clients that need to perform a cleanup at the end of the tests.voidtestBranchCommandTestWithPush()voidtestBranchCommandWithPassphraseAndPushTest()- 
Methods inherited from class org.apache.maven.scm.tck.command.branch.BranchCommandTckTestgetBranch, testBranchCommandTest
 - 
Methods inherited from class org.apache.maven.scm.ScmTckTestCaseaddToWorkingTree, checkIn, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, mapFilesByPath, remove, setUp, tearDown
 - 
Methods inherited from class org.apache.maven.scm.ScmTestCaseassertCommandLine, assertFile, assertPath, assertResultIsSuccess, checkSystemCmdPresence, customizeContainerConfiguration, deleteDirectory, execute, getAssertionCopy, getDate, getDate, getDate, getRepository, getRepositoryRoot, getScmFileSet, getScmManager, getUpdatingCopy, getWorkingCopy, getWorkingDirectory, isSystemCmd, makeDirectory, makeFile, makeFile, makeScmRepository, printOutputError, setDebugExecute
 - 
Methods inherited from class org.apache.maven.scm.PlexusJUnit4TestCasecustomizeComponentConfiguration, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getConfigurationName, getContainer, getCustomConfigurationName, getCustomModules, getName, getResourceAsStream, getTestConfiguration, getTestConfiguration, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, lookup, lookup, lookupMap, release, setupContainer
 
- 
 
- 
- 
- 
Field Detail- 
gitSshServerprotected final GitSshServer gitSshServer 
 - 
tmpDirectorypublic org.junit.rules.TemporaryFolder tmpDirectory 
 
- 
 - 
Constructor Detail- 
GitSshBranchCommandTckTestprotected GitSshBranchCommandTckTest() throws GeneralSecurityException - Throws:
- GeneralSecurityException
 
 
- 
 - 
Method Detail- 
getScmProviderprotected abstract String getScmProvider() 
 - 
getScmUrlpublic String getScmUrl() throws Exception - Specified by:
- getScmUrlin class- ScmTckTestCase
- Returns:
- a provider specific and valid url for the repository
- Throws:
- Exception- if any
 
 - 
configureCredentialspublic void configureCredentials(ScmRepository repository, String passphrase) throws Exception - Throws:
- Exception
 
 - 
initRepopublic void initRepo() throws Exception Initialize repository at the ScmTckTestCase.getScmUrl()location with the files inScmTckTestCase.getScmFileNames()The setup is also asserting on the existence of these files. Note: 'svnadmin' should be a system command.
 This should only be used by this class (thus do not call this method from derived classes)- Specified by:
- initRepoin class- ScmTckTestCase
- Throws:
- Exception- if any
 
 - 
removeRepopublic void removeRepo() throws Exception Description copied from class:ScmTckTestCaseThis method is available to those SCM clients that need to perform a cleanup at the end of the tests. It is needed when server side operations are performed, or the check out dirs are outside of the normal target directory.- Overrides:
- removeRepoin class- ScmTckTestCase
- Throws:
- Exception
 
 - 
checkOutprotected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository) throws Exception Description copied from class:ScmTckTestCaseConvenience method to check out files from the repository.- Overrides:
- checkOutin class- ScmTckTestCase
- Throws:
- Exception
 
 - 
testBranchCommandTestWithPushpublic void testBranchCommandTestWithPush() throws Exception - Throws:
- Exception
 
 - 
testBranchCommandWithPassphraseAndPushTestpublic void testBranchCommandWithPassphraseAndPushTest() throws Exception - Throws:
- Exception
 
 
- 
 
-