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


##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestConvertRecord.java:
##########
@@ -434,7 +435,10 @@ public void testJSONDroppingUnknownFields() throws 
InitializationException, IOEx
         runner.assertAllFlowFilesTransferred(ConvertRecord.REL_SUCCESS, 1);
 
         final MockFlowFile flowFile = 
runner.getFlowFilesForRelationship(ConvertRecord.REL_SUCCESS).getFirst();
-        
assertFalse(flowFile.getContent().contains("fieldThatShouldBeRemoved"));
+
+        // This covers all the cases
+        // "undefinedKey", "undefinedObjectArray", "undefinedObject", 
"undefinedScalarArray"

Review Comment:
   @mosermw Thanks for pointing that out.



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