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 Summary
Fields Modifier and Type Field Description protected GitSshServer
gitSshServer
org.junit.rules.TemporaryFolder
tmpDirectory
-
Fields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONE
-
Fields inherited from class org.apache.maven.scm.PlexusJUnit4TestCase
testName
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GitSshBranchCommandTckTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected CheckOutScmResult
checkOut(File workingDirectory, ScmRepository repository)
Convenience method to check out files from the repositoryvoid
configureCredentials(ScmRepository repository, String passphrase)
protected abstract String
getScmProvider()
String
getScmUrl()
void
initRepo()
Initialize repository at theScmTckTestCase.getScmUrl()
location with the files inScmTckTestCase.getScmFileNames()
void
removeRepo()
This method is available to those SCM clients that need to perform a cleanup at the end of the tests.void
testBranchCommandTestWithPush()
void
testBranchCommandWithPassphraseAndPushTest()
-
Methods inherited from class org.apache.maven.scm.tck.command.branch.BranchCommandTckTest
getBranch, testBranchCommandTest
-
Methods inherited from class org.apache.maven.scm.ScmTckTestCase
addToWorkingTree, checkIn, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, mapFilesByPath, remove, setUp, tearDown
-
Methods inherited from class org.apache.maven.scm.ScmTestCase
assertCommandLine, assertFile, assertPath, assertResultIsSuccess, checkScmPresence, 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.PlexusJUnit4TestCase
customizeComponentConfiguration, 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
-
gitSshServer
protected final GitSshServer gitSshServer
-
tmpDirectory
public org.junit.rules.TemporaryFolder tmpDirectory
-
-
Constructor Detail
-
GitSshBranchCommandTckTest
protected GitSshBranchCommandTckTest() throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
-
Method Detail
-
getScmProvider
protected abstract String getScmProvider()
-
getScmUrl
public String getScmUrl() throws Exception
- Specified by:
getScmUrl
in classScmTckTestCase
- Returns:
- A provider specific and valid url for the repository
- Throws:
Exception
- if any
-
configureCredentials
public void configureCredentials(ScmRepository repository, String passphrase) throws Exception
- Throws:
Exception
-
initRepo
public 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:
initRepo
in classScmTckTestCase
- Throws:
Exception
- if any
-
removeRepo
public void removeRepo() throws Exception
Description copied from class:ScmTckTestCase
This 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:
removeRepo
in classScmTckTestCase
- Throws:
Exception
-
checkOut
protected CheckOutScmResult checkOut(File workingDirectory, ScmRepository repository) throws Exception
Description copied from class:ScmTckTestCase
Convenience method to check out files from the repository- Overrides:
checkOut
in classScmTckTestCase
- Throws:
Exception
-
testBranchCommandTestWithPush
public void testBranchCommandTestWithPush() throws Exception
- Throws:
Exception
-
testBranchCommandWithPassphraseAndPushTest
public void testBranchCommandWithPassphraseAndPushTest() throws Exception
- Throws:
Exception
-
-