File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
src/test/java/com/checkmarx/ast Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .checkmarx .ast ;
2+
3+ import com .checkmarx .ast .results .ReportFormat ;
4+ import org .junit .jupiter .api .Assertions ;
5+ import org .junit .jupiter .api .Test ;
6+
7+ import java .util .List ;
8+ import java .util .UUID ;
9+
10+ class BuildResultsArgumentsTest extends BaseTest {
11+
12+ @ Test
13+ void testBuildResultsArguments_CreatesValidArguments () {
14+ UUID scanId = UUID .randomUUID ();
15+ ReportFormat format = ReportFormat .json ;
16+
17+ List <String > arguments = wrapper .buildResultsArguments (scanId , format );
18+
19+ Assertions .assertNotNull (arguments , "Arguments list should not be null" );
20+ Assertions .assertFalse (arguments .isEmpty (), "Arguments list should not be empty" );
21+ Assertions .assertTrue (arguments .contains (scanId .toString ()), "Arguments should contain scan ID" );
22+ Assertions .assertTrue (arguments .contains (format .toString ()), "Arguments should contain the report format" );
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments