public abstract class GitSshCheckOutCommandTckTest extends CheckOutCommandTckTest
Modifier and Type | Field and Description |
---|---|
protected List<PublicKey> |
acceptedPublicKeys |
protected KeyPair |
keyPair |
protected org.apache.sshd.server.SshServer |
sshServer |
org.junit.rules.TemporaryFolder |
tmpDirectory |
GMT_TIME_ZONE
testName
Modifier | Constructor and Description |
---|---|
protected |
GitSshCheckOutCommandTckTest() |
Modifier and Type | Method and Description |
---|---|
void |
configureCredentials(ScmRepository repository,
String passphrase) |
protected abstract String |
getScmProvider() |
String |
getScmUrl() |
void |
initRepo()
Initialize repository at the
ScmTckTestCase.getScmUrl() location with the files in ScmTckTestCase.getScmFileNames() |
void |
removeRepo()
This method is available to those SCM clients that need to perform
a cleanup at the end of the tests.
|
void |
testCheckOutCommandTest() |
void |
testCheckOutCommandWithPassphraseTest() |
addToWorkingTree, checkIn, checkOut, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, mapFilesByPath, remove, setUp, tearDown
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
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
protected final org.apache.sshd.server.SshServer sshServer
protected final List<PublicKey> acceptedPublicKeys
public org.junit.rules.TemporaryFolder tmpDirectory
protected GitSshCheckOutCommandTckTest() throws GeneralSecurityException
GeneralSecurityException
protected abstract String getScmProvider()
public String getScmUrl() throws Exception
getScmUrl
in class ScmTckTestCase
Exception
- if anypublic void configureCredentials(ScmRepository repository, String passphrase) throws Exception
Exception
public void initRepo() throws Exception
Initialize repository at the ScmTckTestCase.getScmUrl()
location with the files in ScmTckTestCase.getScmFileNames()
The setup is also asserting on the existence of these files.
This should only be used by this class (thus do not call this method from derived classes)
initRepo
in class ScmTckTestCase
Exception
- if anypublic void removeRepo() throws Exception
ScmTckTestCase
removeRepo
in class ScmTckTestCase
Exception
public void testCheckOutCommandTest() throws Exception
testCheckOutCommandTest
in class CheckOutCommandTckTest
Exception
public void testCheckOutCommandWithPassphraseTest() throws Exception
Exception
Copyright © 2003–2024 The Apache Software Foundation. All rights reserved.