Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d94ec8d
Test covergae to 55%
cx-atish-jadhav Jun 8, 2026
3e23098
coverage/cycle-6: add unit tests for ToolBarActions groupBy, ActionCa…
cx-aniket-shinde Jun 10, 2026
45caa4a
Fix ActionOpenPreferencesPageTest hang: run MockedStatic tests on tes…
cx-aniket-shinde Jun 10, 2026
b1a9c34
coverage/cycle-6: Remove UI-mixed test files, add HoverListenerTest a…
cx-aniket-shinde Jun 10, 2026
e79788b
fix: Configure JaCoCo report execution to point to production classes
cx-aniket-shinde Jun 10, 2026
8171002
test: Make HoverListenerTest and GlobalSettingsTest public, add unit.…
cx-aniket-shinde Jun 10, 2026
25a1abd
coverage/cycle-6: Add NotificationPopUpUITest (9 tests), fix test cla…
cx-aniket-shinde Jun 10, 2026
c4b8915
coverage/cycle-6: Restore working JaCoCo configuration from main branch
cx-aniket-shinde Jun 10, 2026
d642170
coverage/cycle-6: Update JaCoCo configuration from other/release-inte…
cx-aniket-shinde Jun 10, 2026
f6a00ad
Fix test execution: disable useUIHarness and add proper surefire phas…
cx-aniket-shinde Jun 19, 2026
49ee2a0
Configure complete JaCoCo coverage reporting pipeline
cx-aniket-shinde Jun 19, 2026
143aab4
Add Maven profiles for selective test execution
cx-aniket-shinde Jun 19, 2026
7034794
Revert "Add Maven profiles for selective test execution"
cx-aniket-shinde Jun 19, 2026
af1c68f
Revert "Configure complete JaCoCo coverage reporting pipeline"
cx-aniket-shinde Jun 19, 2026
bb7c760
Revert "Fix test execution: disable useUIHarness and add proper suref…
cx-aniket-shinde Jun 19, 2026
41a6753
removed ui test from unit part
cx-aniket-shinde Jun 22, 2026
61997c6
Resolved failing test case
cx-aniket-shinde Jul 2, 2026
c2654b4
added test case
cx-aniket-shinde Jul 2, 2026
916eb9e
added test case
cx-aniket-shinde Jul 2, 2026
c4488ea
added test case
cx-aniket-shinde Jul 2, 2026
3e51e65
resolved failing test case
cx-aniket-shinde Jul 2, 2026
15a4db6
resolved failing test case
cx-aniket-shinde Jul 2, 2026
e67b6fc
resolved failing test case
cx-aniket-shinde Jul 2, 2026
436ffd5
Review comments resolved
cx-aniket-shinde Jul 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions checkmarx-ast-eclipse-plugin-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,34 @@
<formats>
<format>XML</format>
<format>CSV</format>
<format>HTML</format>
</formats>
</configuration>
</execution>
<execution>
<id>check</id>
<phase>verify</phase>
<goals><goal>check</goal></goals>
<configuration>
<dataFile>${project.build.directory}/jacoco.exec</dataFile>
<classesDirectory>${project.basedir}/../checkmarx-ast-eclipse-plugin/target/classes</classesDirectory>
<excludes>
<exclude>org/eclipse/wb/swt/SWTResourceManager.class</exclude>
</excludes>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>INSTRUCTION</counter>
<value>COVEREDRATIO</value>
<minimum>0.30</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
package checkmarx.ast.eclipse.plugin.tests.unit.enums;

import static org.junit.jupiter.api.Assertions.*;

import org.junit.jupiter.api.Test;

import com.checkmarx.eclipse.enums.ActionName;

class ActionNameTest {

@Test
void testEnumValues_count() {
assertEquals(13, ActionName.values().length);
}

@Test
void testEnumConstant_CRITICAL() {
assertNotNull(ActionName.CRITICAL);
assertEquals("CRITICAL", ActionName.CRITICAL.name());
}

@Test
void testEnumConstant_HIGH() {
assertNotNull(ActionName.HIGH);
assertEquals("HIGH", ActionName.HIGH.name());
}

@Test
void testEnumConstant_MEDIUM() {
assertNotNull(ActionName.MEDIUM);
assertEquals("MEDIUM", ActionName.MEDIUM.name());
}

@Test
void testEnumConstant_LOW() {
assertNotNull(ActionName.LOW);
assertEquals("LOW", ActionName.LOW.name());
}

@Test
void testEnumConstant_INFO() {
assertNotNull(ActionName.INFO);
assertEquals("INFO", ActionName.INFO.name());
}

@Test
void testEnumConstant_START_SCAN() {
assertNotNull(ActionName.START_SCAN);
assertEquals("START_SCAN", ActionName.START_SCAN.name());
}

@Test
void testEnumConstant_CANCEL_SCAN() {
assertNotNull(ActionName.CANCEL_SCAN);
assertEquals("CANCEL_SCAN", ActionName.CANCEL_SCAN.name());
}

@Test
void testEnumConstant_CLEAN_AND_REFRESH() {
assertNotNull(ActionName.CLEAN_AND_REFRESH);
assertEquals("CLEAN_AND_REFRESH", ActionName.CLEAN_AND_REFRESH.name());
}

@Test
void testEnumConstant_PREFERENCES() {
assertNotNull(ActionName.PREFERENCES);
assertEquals("PREFERENCES", ActionName.PREFERENCES.name());
}

@Test
void testEnumConstant_GROUP_BY_SEVERITY() {
assertNotNull(ActionName.GROUP_BY_SEVERITY);
assertEquals("GROUP_BY_SEVERITY", ActionName.GROUP_BY_SEVERITY.name());
}

@Test
void testEnumConstant_GROUP_BY_QUERY_NAME() {
assertNotNull(ActionName.GROUP_BY_QUERY_NAME);
assertEquals("GROUP_BY_QUERY_NAME", ActionName.GROUP_BY_QUERY_NAME.name());
}

@Test
void testEnumConstant_GROUP_BY_STATE_NAME() {
assertNotNull(ActionName.GROUP_BY_STATE_NAME);
assertEquals("GROUP_BY_STATE_NAME", ActionName.GROUP_BY_STATE_NAME.name());
}

@Test
void testEnumConstant_FILTER_CHANGED() {
assertNotNull(ActionName.FILTER_CHANGED);
assertEquals("FILTER_CHANGED", ActionName.FILTER_CHANGED.name());
}

@Test
void testValueOf_allConstants() {
for (ActionName action : ActionName.values()) {
assertEquals(action, ActionName.valueOf(action.name()));
}
}

@Test
void testValueOf_invalidName_throwsIllegalArgumentException() {
assertThrows(IllegalArgumentException.class, () -> ActionName.valueOf("INVALID_ACTION"));
}

@Test
void testValueOf_nullName_throwsNullPointerException() {
assertThrows(NullPointerException.class, () -> ActionName.valueOf(null));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package checkmarx.ast.eclipse.plugin.tests.unit.enums;

import static org.junit.jupiter.api.Assertions.*;

import org.junit.jupiter.api.Test;

import com.checkmarx.eclipse.enums.PluginListenerType;

class PluginListenerTypeTest {

@Test
void testEnumValues_count() {
assertEquals(4, PluginListenerType.values().length);
}

@Test
void testEnumConstant_GET_RESULTS() {
assertNotNull(PluginListenerType.GET_RESULTS);
assertEquals("GET_RESULTS", PluginListenerType.GET_RESULTS.name());
}

@Test
void testEnumConstant_FILTER_CHANGED() {
assertNotNull(PluginListenerType.FILTER_CHANGED);
assertEquals("FILTER_CHANGED", PluginListenerType.FILTER_CHANGED.name());
}

@Test
void testEnumConstant_CLEAN_AND_REFRESH() {
assertNotNull(PluginListenerType.CLEAN_AND_REFRESH);
assertEquals("CLEAN_AND_REFRESH", PluginListenerType.CLEAN_AND_REFRESH.name());
}

@Test
void testEnumConstant_LOAD_RESULTS_FOR_SCAN() {
assertNotNull(PluginListenerType.LOAD_RESULTS_FOR_SCAN);
assertEquals("LOAD_RESULTS_FOR_SCAN", PluginListenerType.LOAD_RESULTS_FOR_SCAN.name());
}

@Test
void testValueOf_allConstants() {
for (PluginListenerType type : PluginListenerType.values()) {
assertEquals(type, PluginListenerType.valueOf(type.name()));
}
}

@Test
void testValueOf_invalidName_throwsIllegalArgumentException() {
assertThrows(IllegalArgumentException.class, () -> PluginListenerType.valueOf("INVALID_TYPE"));
}

@Test
void testValueOf_nullName_throwsNullPointerException() {
assertThrows(NullPointerException.class, () -> PluginListenerType.valueOf(null));
}
}
Loading
Loading