}
public void testLog1Consumer()
throws Exception
{
GitRemoveConsumer consumer = new GitRemoveConsumer( new DefaultLog() );
File f = getTestFile( "/src/test/resources/git/remove/gitrm.gitlog" );
BufferedReader r = new BufferedReader( new FileReader( f ) );
String line;
while ( ( line = r.readLine() ) != null )
{
consumer.consumeLine( line );
}
List<ScmFile> changedFiles = consumer.getRemovedFiles();
assertEquals( 2, changedFiles.size() );
testScmFile( (ScmFile) changedFiles.get( 0 ), "src/main/java/Application.java", ScmFileStatus.DELETED );
testScmFile( (ScmFile) changedFiles.get( 1 ), "src/test/java/Test.java" , ScmFileStatus.DELETED );