org.apache.maven.scm.provider.git.gitexe.command.blame
Class GitBlameConsumerTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.codehaus.plexus.PlexusTestCase
              extended by org.apache.maven.scm.provider.git.gitexe.command.blame.GitBlameConsumerTest
All Implemented Interfaces:
junit.framework.Test

public class GitBlameConsumerTest
extends org.codehaus.plexus.PlexusTestCase

Test the GitBlameConsumer in various different situations. Depending on the underlying operating system we might get slightly different output from a

git blame
commandline invocation.


Field Summary
 
Fields inherited from class org.codehaus.plexus.PlexusTestCase
basedir, container
 
Constructor Summary
GitBlameConsumerTest()
           
 
Method Summary
 void testConsumer()
           
 void testConsumerCompareWithOriginal()
          This unit test compares the output of our new parsing with a simplified git blame output.
 void testConsumerEasy()
           
 void testConsumerEmptyFile()
          Test what happens if a git-blame command got invoked on a file which has no content.
 void testConsumerOnNewFile()
          Test what happens if a git-blame command got invoked on a file which didn't got added to the git repo yet.
 void testConsumerWithDifferentAuthor()
          Test a case where the committer and author are different persons
 
Methods inherited from class org.codehaus.plexus.PlexusTestCase
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release, setUp, tearDown
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GitBlameConsumerTest

public GitBlameConsumerTest()
Method Detail

testConsumerEasy

public void testConsumerEasy()
                      throws Exception
Throws:
Exception

testConsumer

public void testConsumer()
                  throws Exception
Throws:
Exception

testConsumerEmptyFile

public void testConsumerEmptyFile()
                           throws Exception
Test what happens if a git-blame command got invoked on a file which has no content.

Throws:
Exception

testConsumerOnNewFile

public void testConsumerOnNewFile()
                           throws Exception
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

public void testConsumerWithDifferentAuthor()
                                     throws Exception
Test a case where the committer and author are different persons

Throws:
Exception

testConsumerCompareWithOriginal

public void testConsumerCompareWithOriginal()
                                     throws Exception
This unit test compares the output of our new parsing with a simplified git blame output.

Throws:
Exception


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.