-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTenantTest.java
More file actions
37 lines (29 loc) · 1.01 KB
/
TenantTest.java
File metadata and controls
37 lines (29 loc) · 1.01 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
package com.checkmarx.ast;
import com.checkmarx.ast.tenant.TenantSetting;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.util.List;
public class TenantTest extends BaseTest {
@Test
void testTenantSettings() throws Exception {
List<TenantSetting> tenantSettings = wrapper.tenantSettings();
Assertions.assertFalse(tenantSettings.isEmpty());
}
@Test
void testIdeScansEnabled() {
Assertions.assertDoesNotThrow(() -> wrapper.ideScansEnabled());
}
@Test
void testAiMcpServerEnabled() throws Exception {
boolean enabled = Assertions.assertDoesNotThrow(() -> wrapper.aiMcpServerEnabled());
Assertions.assertTrue(enabled, "AI MCP Server flag expected to be true");
}
@Test
void testDevAssistEnabled() {
Assertions.assertDoesNotThrow(() -> wrapper.devAssistEnabled());
}
@Test
void testOneAssistEnabled() {
Assertions.assertDoesNotThrow(() -> wrapper.oneAssistEnabled());
}
}