Jon Kessler created NIFI-4829:
---------------------------------
Summary: MockControllerServiceInitializationContext: Update
getControllerServiceName to function properly vs always returning null
Key: NIFI-4829
URL: https://issues.apache.org/jira/browse/NIFI-4829
Project: Apache NiFi
Issue Type: Improvement
Components: Core Framework
Affects Versions: 1.5.0
Reporter: Jon Kessler
Currently this method is hardcoded to return null. When using the TestRunner to
configure and enable controller services, those controller services will have
access to a ControllerServiceLookup object that is aware of all controller
services that have been added to that TestRunner. Rather than returning null,
that method should use the lookup when it is available.
[https://git-wip-us.apache.org/repos/asf?p=nifi.git;a=blob;f=nifi-mock/src/main/java/org/apache/nifi/util/MockControllerServiceInitializationContext.java;hb=HEAD#l54]
Something like:
{code:java}
@Override
public String getControllerServiceName(final String serviceIdentifier) {
return getControllerServiceLookup() != null ?
getControllerServiceLookup().getControllerServiceName(serviceIdentifier) : null;
}{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)