-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEngineTest.java
More file actions
47 lines (42 loc) · 1.48 KB
/
EngineTest.java
File metadata and controls
47 lines (42 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.checkmarx.ast;
import com.checkmarx.ast.engines.Engines;
import com.checkmarx.ast.wrapper.CxException;
import lombok.NonNull;
import lombok.SneakyThrows;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EngineTest extends BaseTest{
private static final Logger logger = LoggerFactory.getLogger(EngineTest.class);
@Test
void testApiList1() throws Exception {
Engines enginesList = wrapper.listApi("");
logger.info(enginesList.toString());
Assertions.assertTrue(enginesList.getEnginesList().length>0);
}
@Test
void testApiList2() throws Exception {
Engines enginesList = wrapper.listApi("SAST");
logger.info(enginesList.toString());
Assertions.assertTrue(enginesList.getEnginesList().length>0);
}
@Test
void testApiList3() throws Exception {
Engines enginesList = wrapper.listApi("SCA");
logger.info(enginesList.toString());
Assertions.assertTrue(enginesList.getEnginesList().length>0);
}
@Test
void testApiList4() throws Exception {
Engines enginesList = wrapper.listApi("Iac");
logger.info(enginesList.toString());
Assertions.assertTrue(enginesList.getEnginesList().length>0);
}
@SneakyThrows
@Test
void testApiList5() throws Exception {
Engines enginesList = wrapper.listApi("xyz");
Assertions.assertEquals(null,enginesList);
}
}