Class GitChangeLogCommandTckTest
- java.lang.Object
-
- org.apache.maven.scm.PlexusJUnit4TestCase
-
- org.apache.maven.scm.ScmTestCase
-
- org.apache.maven.scm.ScmTckTestCase
-
- org.apache.maven.scm.tck.command.changelog.ChangeLogCommandTckTest
-
- org.apache.maven.scm.provider.git.command.changelog.GitChangeLogCommandTckTest
-
public abstract class GitChangeLogCommandTckTest extends ChangeLogCommandTckTest
- Author:
- Mark Struberg
-
-
Field Summary
Fields Modifier and Type Field Description static long
SLEEP_TIME_IN_MILLIS
-
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 Constructor Description GitChangeLogCommandTckTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CheckOutScmResult
checkOut(File workingDirectory, ScmRepository repository)
Convenience method to check out files from the repositoryvoid
initRepo()
Initialize repository at theScmTckTestCase.getScmUrl()
location with the files inScmTckTestCase.getScmFileNames()
void
testChangeLogCommandFromHeadAncestorAndHead()
void
testChangeLogCommandFromHeadToHead()
void
testChangeLogCommandFromHeadToStartOfRepository()
void
testChangeLogCommandFromUndefinedToHead()
void
testChangeLogCommandFromVersionToStartOfRepository()
void
testChangeLogCommandFromVersionToUndefined()
void
testChangeLogCommandFromVoneToVtwo()
void
testChangeLogCommandWithStartEndInBadOrder()
-
Methods inherited from class org.apache.maven.scm.tck.command.changelog.ChangeLogCommandTckTest
isTagAnExtraCommit, testChangeLogCommand
-
Methods inherited from class org.apache.maven.scm.ScmTckTestCase
addToWorkingTree, checkIn, checkScmPresence, edit, getScmFileNames, getScmProviderCommand, getScmRepository, getScmUrl, mapFilesByPath, remove, removeRepo, 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
-
SLEEP_TIME_IN_MILLIS
public static final long SLEEP_TIME_IN_MILLIS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitChangeLogCommandTckTest
public GitChangeLogCommandTckTest()
-
-
Method Detail
-
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
-
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
-
testChangeLogCommandFromHeadAncestorAndHead
public void testChangeLogCommandFromHeadAncestorAndHead() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromHeadToHead
public void testChangeLogCommandFromHeadToHead() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromUndefinedToHead
public void testChangeLogCommandFromUndefinedToHead() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromVersionToUndefined
public void testChangeLogCommandFromVersionToUndefined() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromVoneToVtwo
public void testChangeLogCommandFromVoneToVtwo() throws Exception
- Throws:
Exception
-
testChangeLogCommandWithStartEndInBadOrder
public void testChangeLogCommandWithStartEndInBadOrder() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromHeadToStartOfRepository
public void testChangeLogCommandFromHeadToStartOfRepository() throws Exception
- Throws:
Exception
-
testChangeLogCommandFromVersionToStartOfRepository
public void testChangeLogCommandFromVersionToStartOfRepository() throws Exception
- Throws:
Exception
-
-