Esteban,

NiFi does not allow you to run it embedded. However, it does provide a “Mock 
Framework” that we use very heavily for doing unit testing of NiFi components.


Can you explain your use case a bit further? What exactly are you trying to 
unit test?


Thanks

-Mark






From: Esteban Aliverti
Sent: ‎Tuesday‎, ‎February‎ ‎24‎, ‎2015 ‎8‎:‎34‎ ‎AM
To: [email protected]





Hello,
My name is Esteban Aliverti and I'm currently trying to use NiFi in one of
my company's projects. The idea is to use NiFi behind a java API.
What I was wondering is if there's any way to run NiFi embedded so I can
easily build unit tests without having to start a separate NiFi server
before I run the tests. Another important thing is that each test should be
self-contained and thus I would like them to always run in a "clean" NiFi
instance.
What I was thinking was a way to programatically configure and start NiFi
and maybe import a workflow from a template definition I can create
beforehand.
Is this currently possible? If not, any suggestion?

Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Blog @ http://ilesteban.wordpress.com

Reply via email to