Github user mattyb149 commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/872#discussion_r74981298
  
    --- Diff: 
nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-security/src/test/groovy/org/apache/nifi/web/security/x509/ocsp/OcspCertificateValidatorGroovyTest.groovy
 ---
    @@ -65,7 +65,8 @@ public class OcspCertificateValidatorGroovyTest {
     
         @Before
         public void setUp() throws Exception {
    -        mockProperties = [getProperty: { String propertyName -> return 
"value_for_${propertyName}" }] as NiFiProperties
    +        mockProperties = [getProperty: { String propertyName -> return 
"value_for_${propertyName}"
    +            ,getPropertyKeys: { -> return ["A", "set"] as Set<String>}] as 
NiFiProperties
    --- End diff --
    
    Actually I'm getting weird errors, doesn't look like map coercion likes the 
getProperty method, possibly because that method is used all over Groovy 
meta-classes and such. This could replace the above:
    
    mockProperties = new NiFiProperties() {
                @Override
                String getProperty(String key) {
                    return 'value_for_' + key
                }
    
                @Override
                Set<String> getPropertyKeys() {
                    return ["A", "set"]
                }
            }


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to