Class GitSshCheckOutCommandTckTest
java.lang.Object
org.apache.maven.scm.PlexusJUnit4TestSupport
org.apache.maven.scm.ScmTestCase
org.apache.maven.scm.ScmTckTestCase
org.apache.maven.scm.tck.command.checkout.CheckOutCommandTckTest
org.apache.maven.scm.provider.git.command.checkout.GitSshCheckOutCommandTckTest
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KeyPairprotected final org.apache.sshd.server.SshServerorg.junit.rules.TemporaryFolderFields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONEFields inherited from class org.apache.maven.scm.PlexusJUnit4TestSupport
testName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureCredentials(ScmRepository repository, String passphrase) protected abstract StringvoidinitRepo()Initialize repository at theScmTckTestCase.getScmUrl()location with the files inScmTckTestCase.getScmFileNames()voidThis method is available to those SCM clients that need to perform a cleanup at the end of the tests.voidvoidMethods inherited from class org.apache.maven.scm.ScmTckTestCase
addToWorkingTree, checkIn, checkOut, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, mapFilesByPath, remove, setUp, tearDownMethods 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, printSystemCmdUnavail, setDebugExecuteMethods inherited from class org.apache.maven.scm.PlexusJUnit4TestSupport
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 Details
-
sshServer
-
keyPair
-
acceptedPublicKeys
-
tmpDirectory
-
-
Constructor Details
-
GitSshCheckOutCommandTckTest
- Throws:
GeneralSecurityException
-
-
Method Details
-
getScmProvider
-
getScmUrl
- Specified by:
getScmUrlin classScmTckTestCase- Returns:
- A provider specific and valid url for the repository
- Throws:
Exception- if any
-
configureCredentials
- Throws:
Exception
-
initRepo
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 classScmTckTestCase- Throws:
Exception- if any
-
removeRepo
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 classScmTckTestCase- Throws:
Exception
-
testCheckOutCommandTest
- Overrides:
testCheckOutCommandTestin classCheckOutCommandTckTest- Throws:
Exception
-
testCheckOutCommandWithPassphraseTest
- Throws:
Exception
-