pvillard31 commented on code in PR #10217:
URL: https://github.com/apache/nifi/pull/10217#discussion_r2300449090


##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestGenerateFlowFile.java:
##########
@@ -77,6 +80,27 @@ public void testDynamicPropertiesToAttributes() {
         generatedFlowFile.assertAttributeEquals("mime.type", 
"application/text");
     }
 
+    @Test
+    public void testContextParametersToAttributes() {
+        TestRunner runner = TestRunners.newTestRunner(new GenerateFlowFile(),
+                                                      new 
MockParameterLookup(Map.ofEntries(
+                                                              
Map.entry("context.parameter.property",
+                                                                        
"context.parameter.value")))                                                    
 );

Review Comment:
   ```suggestion
           TestRunner runner = TestRunners.newTestRunner(new GenerateFlowFile(),
                                                         new 
MockParameterLookup(Map.of("context.parameter.property", 
"context.parameter.value")));
   ```



-- 
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