Take a look at TestInvokeJavascript.java. There are some samples there of
manually calling customValidate.

On Tue, Apr 10, 2018 at 10:28 AM, Mohit <mohit.j...@open-insights.co.in>
wrote:

> Hi,
>
>
>
> I’m testing a custom processor. I’ve used a customValidate(ValidationContext
> context) method to validate the properties. When I run coverage, that piece
> of code is not covered.  I’ve used assertNotVaild() but it doesn’t increase
> my code coverage.
>
> Is there any way to test that part? My code coverage is affected by it.
>
>
>
> It would be helpful if there is any document available for nifi-mock.
>
>
>
> Regards,
>
> Mohit
>

Reply via email to