Github user joewitt commented on the issue:
https://github.com/apache/nifi/pull/2780
it should be fine for junit dep to be compile scope for nifi-mock.
nifi-mock will always be used under test scope so the transitive compile scoped
deps will be ok.---
