ncover21 commented on code in PR #9825:
URL: https://github.com/apache/nifi/pull/9825#discussion_r2025269798


##########
nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/test/java/org/apache/nifi/processors/box/UpdateBoxFileMetadataInstanceTest.java:
##########
@@ -122,82 +133,287 @@ void testEmptyInput() {
     }
 
     @Test
-    void testFileNotFound() {
-        // Simulate 404 Not Found response
-        BoxAPIResponseException mockException = new 
BoxAPIResponseException("API Error", 404, "Box File Not Found", null);
-        
doThrow(mockException).when(mockBoxFile).updateMetadata(any(Metadata.class));
+    void testFileNotFound() throws Exception {
+        final UpdateBoxFileMetadataInstance testSubject = new 
UpdateBoxFileMetadataInstance() {
+            @Override
+            BoxFile getBoxFile(final String fileId) {
+                throw new BoxAPIResponseException("API Error", 404, "Box File 
Not Found", null);

Review Comment:
   Done



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