synchronize getChangeset method of hook events and call registered pre processors before the changesets are returned to hook

This commit is contained in:
Sebastian Sdorra
2013-01-14 08:41:22 +01:00
parent 7edbf6d404
commit c022320e0a
4 changed files with 265 additions and 5 deletions

View File

@@ -58,6 +58,7 @@ import static org.mockito.Mockito.*;
import java.io.IOException;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
@@ -157,7 +158,27 @@ public class DefaultRepositoryManagerTest extends RepositoryManagerTestBase
return new DefaultRepositoryManager(configuration, contextProvider,
new DefaultKeyGenerator(), repositoryDAO, handlerSet, listenerProvider,
hookProvider);
hookProvider, createEmptyPreProcessorUtil());
}
/**
* Method description
*
*
* @return
*/
private PreProcessorUtil createEmptyPreProcessorUtil()
{
//J-
return new PreProcessorUtil(
new HashSet<ChangesetPreProcessor>(),
new HashSet<ChangesetPreProcessorFactory>(),
new HashSet<FileObjectPreProcessor>(),
new HashSet<FileObjectPreProcessorFactory>(),
new HashSet<BlameLinePreProcessor>(),
new HashSet<BlameLinePreProcessorFactory>()
);
//J+
}
/**