proofpoint/event-collector — pull request #15 by mkralka (2012-12-20 08:50:10+00:00)
Title: Event Collector Refactoring [Part 3]

More refactoring to improve the unit test quality.

The introduction of a new EventTapFlow factory, detangles the EventTapFlow from the EventTapWriter to improve testability of EventTapWriter. In this process, an interface was extracted from the EventTapFlow.

More refactoring was made to the BatchProcessor in order to improve testability. An interface was extracted from the BatchProcessor, allowing more complex mock objects in the unit tests. The restriction that a BatchProcessor only works for Events was also removed.

Finally, the unit tests for EventTapWriter were expanded to perform more thorough tests of the refreshFlows().