Class GitBlameConsumerTest
java.lang.Object
org.apache.maven.scm.PlexusJUnit4TestSupport
org.apache.maven.scm.ScmTestCase
org.apache.maven.scm.provider.git.gitexe.command.blame.GitBlameConsumerTest
Test the
GitBlameConsumer
in various different situations.
Depending on the underlying operating system we might get
slightly different output from a git blamecommandline invocation.
-
Field Summary
Fields inherited from class org.apache.maven.scm.ScmTestCase
GMT_TIME_ZONE
Fields inherited from class org.apache.maven.scm.PlexusJUnit4TestSupport
testName
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
This unit test compares the output of our new parsing with a simplified git blame output.void
void
Test what happens if a git-blame command got invoked on a file which has no content.void
Test what happens if a git-blame command got invoked on a file which didn't got added to the git repo yet.void
Test a case where the committer and author are different personsMethods 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, setDebugExecute, setUp
Methods 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, tearDown
-
Constructor Details
-
GitBlameConsumerTest
public GitBlameConsumerTest()
-
-
Method Details
-
testConsumerEasy
- Throws:
Exception
-
testConsumer
- Throws:
Exception
-
testConsumerEmptyFile
Test what happens if a git-blame command got invoked on a file which has no content.- Throws:
Exception
-
testConsumerOnNewFile
Test what happens if a git-blame command got invoked on a file which didn't got added to the git repo yet.- Throws:
Exception
-
testConsumerWithDifferentAuthor
Test a case where the committer and author are different persons- Throws:
Exception
-
testConsumerCompareWithOriginal
This unit test compares the output of our new parsing with a simplified git blame output.- Throws:
Exception
-