dan-s1 commented on code in PR #11059:
URL: https://github.com/apache/nifi/pull/11059#discussion_r3012298727


##########
nifi-extension-bundles/nifi-groovyx-bundle/nifi-groovyx-processors/src/test/java/org/apache/nifi/processors/groovyx/ExecuteGroovyScriptTest.java:
##########
@@ -566,6 +567,31 @@ public void test_sensitive_dynamic_property() {
         runner.run();
     }
 
+    @Test void invalidExpressionLanguageInDynamicProperty() {
+        runner.setProperty("myProperty", "${myparam:isempty()}");
+        runner.setProperty(ExecuteGroovyScript.SCRIPT_BODY, "assert true == 
true");
+        runner.setProperty(ExecuteGroovyScript.FAIL_STRATEGY, "transfer to 
failure");

Review Comment:
   Can a static string be declared in the `ExecuteGroovyScript` so it can be 
reused in that class and here in the test class?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to