@@ -361,8 +361,7 @@ void testUploadSingleAttachmentPDF() throws IOException {
361361 @ Test
362362 @ Order (4 )
363363 void testUploadVirusFileInScannedRepo () throws IOException {
364- System .out .println (
365- "Test (4) : Upload EICAR virus file — expect virus scan to reject the file" );
364+ System .out .println ("Test (4) : Upload EICAR virus file — expect virus scan to reject the file" );
366365
367366 boolean testStatus = false ;
368367
@@ -392,8 +391,7 @@ void testUploadVirusFileInScannedRepo() throws IOException {
392391 response = api .saveEntityDraft (appUrl , entityName , srvpath , entityID );
393392 System .out .println ("[Test 4] saveEntityDraft response: " + response );
394393 if (response .equals ("Saved" )) {
395- System .out .println (
396- "[Test 4] Waiting for virus scan to complete (timeout: 120s)..." );
394+ System .out .println ("[Test 4] Waiting for virus scan to complete (timeout: 120s)..." );
397395 // Wait for the virus scan to complete and expect it to fail
398396 boolean uploadSucceeded = waitForUploadCompletion (entityID , attachmentID2 , 120 );
399397 System .out .println ("[Test 4] uploadSucceeded: " + uploadSucceeded );
@@ -402,18 +400,14 @@ void testUploadVirusFileInScannedRepo() throws IOException {
402400 Map <String , Object > metadata =
403401 api .fetchMetadataDraft (appUrl , entityName , facetName , entityID , attachmentID2 );
404402 System .out .println ("[Test 4] Final metadata: " + metadata );
405- System .out .println (
406- "[Test 4] uploadStatus: " + metadata .get ("uploadStatus" ));
407- System .out .println (
408- "[Test 4] scanStatus: " + metadata .get ("scanStatus" ));
403+ System .out .println ("[Test 4] uploadStatus: " + metadata .get ("uploadStatus" ));
404+ System .out .println ("[Test 4] scanStatus: " + metadata .get ("scanStatus" ));
409405 } catch (Exception e ) {
410- System .err .println (
411- "[Test 4] Error fetching final metadata: " + e .getMessage ());
406+ System .err .println ("[Test 4] Error fetching final metadata: " + e .getMessage ());
412407 }
413408 if (!uploadSucceeded ) {
414409 // Virus scan rejected the file — this is the expected behavior
415- System .out .println (
416- "[Test 4] Virus file was correctly rejected by the virus scanner" );
410+ System .out .println ("[Test 4] Virus file was correctly rejected by the virus scanner" );
417411 testStatus = true ;
418412 } else {
419413 fail (
0 commit comments