[
https://issues.apache.org/jira/browse/NIFI-14876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-14876.
-----------------------------------
Resolution: Fixed
> Ability to mock Context Parameters in TestRunner
> ------------------------------------------------
>
> Key: NIFI-14876
> URL: https://issues.apache.org/jira/browse/NIFI-14876
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Tools and Build
> Affects Versions: 2.4.0, 2.5.0
> Reporter: Asger Askov Blekinge
> Priority: Minor
> Labels: pull-request-available
> Fix For: 2.6.0
>
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> When developing Custom Processors, you need to create Unit Tests.
>
> Currently, {{MockProcessContext}} is always using {{ParameterLookup.EMPTY, or
> rather, MockPropertyValue is.}}
>
> This makes it impossibly to mock a context parameter for a TestRunner.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)