Details
-
Improvement
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
1.11.1
-
None
Description
The FlowController and StandardFlowService classes are critical components in the NiFi controller which require a number of collaborator services but create these classes internally and do not allow for dependency injection or inversion of control. This makes them nearly impossible to coherently unit test, and they are very brittle and tightly coupled to specific implementations.
Introducing interfaces and allowing for dependency injection would greatly improve the testability and composition of these classes.