Skip to content

Commit 2e34174

Browse files
committed
Add test for scan creation with async and debug flags in ScanTest.java
1 parent ca61aea commit 2e34174

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/java/com/checkmarx/ast/ScanTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ void testScanCreate() throws Exception {
7272
Assertions.assertEquals("Completed", wrapper.scanShow(UUID.fromString(scan.getId())).getStatus());
7373
}
7474

75+
@Test
76+
void testScanCreateWithAsyncAndDebugFlag_ShouldParseScanResponseSuccessfully() throws Exception {
77+
Map<String, String> params = commonParams();
78+
Scan scan = wrapper.scanCreate(params, "--debug --async");
79+
Assertions.assertNotNull(scan);
80+
}
81+
7582
@Test
7683
void testScanCancel() throws Exception {
7784
Map<String, String> params = commonParams();

0 commit comments

Comments
 (0)