@@ -25,7 +25,7 @@ void testScanShow() throws Exception {
2525
2626 @ Test
2727 void testScanAsca_WhenFileWithVulnerabilitiesIsSentWithAgent_ReturnSuccessfulResponseWithCorrectValues () throws Exception {
28- ScanResult scanResult = wrapper .ScanAsca ("src/test/resources/python-vul-file.py" , true , "vscode" , null );
28+ ScanResult scanResult = wrapper .ScanAsca ("src/test/resources/python-vul-file.py" , true , "vscode" );
2929
3030 // Assertions for the scan result
3131 Assertions .assertNotNull (scanResult .getRequestId (), "Request ID should not be null" );
@@ -46,7 +46,7 @@ void testScanAsca_WhenFileWithVulnerabilitiesIsSentWithAgent_ReturnSuccessfulRes
4646
4747 @ Test
4848 void testScanAsca_WhenFileWithoutVulnerabilitiesIsSent_ReturnSuccessfulResponseWithCorrectValues () throws Exception {
49- ScanResult scanResult = wrapper .ScanAsca ("src/test/resources/csharp-no-vul.cs" , true , null , null );
49+ ScanResult scanResult = wrapper .ScanAsca ("src/test/resources/csharp-no-vul.cs" , true , null );
5050 Assertions .assertNotNull (scanResult .getRequestId ());
5151 Assertions .assertTrue (scanResult .isStatus ());
5252 Assertions .assertNull (scanResult .getError ());
@@ -55,25 +55,12 @@ void testScanAsca_WhenFileWithoutVulnerabilitiesIsSent_ReturnSuccessfulResponseW
5555
5656 @ Test
5757 void testScanAsca_WhenMissingFileExtension_ReturnFileExtensionIsRequiredFailure () throws Exception {
58- ScanResult scanResult = wrapper .ScanAsca ("CODEOWNERS" , true , null , null );
58+ ScanResult scanResult = wrapper .ScanAsca ("CODEOWNERS" , true , null );
5959 Assertions .assertNotNull (scanResult .getRequestId ());
6060 Assertions .assertNotNull (scanResult .getError ());
6161 Assertions .assertEquals ("The file name must have an extension." , scanResult .getError ().getDescription ());
6262 }
6363
64- @ Test
65- void testScanAsca_WithIgnoreFilePath_ShouldWorkCorrectly () throws Exception {
66- String ignoreFile = "src/test/resources/ignored-packages.json" ;
67-
68- // Test with ignore file - should not break the scanning process
69- ScanResult scanResult = wrapper .ScanAsca ("src/test/resources/python-vul-file.py" , true , "test-agent" , ignoreFile );
70-
71- // Verify the scan completes successfully
72- Assertions .assertNotNull (scanResult .getRequestId (), "Request ID should not be null" );
73- Assertions .assertTrue (scanResult .isStatus (), "Status should be true" );
74- Assertions .assertNull (scanResult .getError (), "Error should be null when scan is successful" );
75- }
76-
7764 @ Test
7865 void testScanList () throws Exception {
7966 List <Scan > cxOutput = wrapper .scanList ("limit=10" );
0 commit comments