From caf1316338426dc651b9d9ce5f59f921118d0d84 Mon Sep 17 00:00:00 2001 From: AlvoBen Date: Tue, 5 Nov 2024 17:10:25 +0200 Subject: [PATCH] update java wrapper --- build.gradle | 2 +- src/test/java/com/checkmarx/intellij/ui/TestAsca.java | 8 -------- .../checkmarx/intellij/ui/utils/RemoteRobotUtils.java | 9 --------- 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/build.gradle b/build.gradle index c4baa83e..1fda6dda 100644 --- a/build.gradle +++ b/build.gradle @@ -43,7 +43,7 @@ dependencies { implementation 'com.miglayout:miglayout-swing:11.3' if (javaWrapperVersion == "" || javaWrapperVersion == null) { - implementation('com.checkmarx.ast:ast-cli-java-wrapper:2.1.1'){ + implementation('com.checkmarx.ast:ast-cli-java-wrapper:2.1.2'){ exclude group: 'junit', module: 'junit' } } else { diff --git a/src/test/java/com/checkmarx/intellij/ui/TestAsca.java b/src/test/java/com/checkmarx/intellij/ui/TestAsca.java index 21e3309e..a802c386 100644 --- a/src/test/java/com/checkmarx/intellij/ui/TestAsca.java +++ b/src/test/java/com/checkmarx/intellij/ui/TestAsca.java @@ -41,12 +41,4 @@ public void clickAscaCheckbox_ExitSetting_OpenSetting_ValidateAscaRunning_Succes validateAscaRunning(); click(OK_BTN); } - - @Test - @Video - public void AscaActivated_EditFileWithVulnerabilities() { -// clickAscaCheckbox(); -// click(OK_BTN); - getInspectedProblems(); - } } \ No newline at end of file diff --git a/src/test/java/com/checkmarx/intellij/ui/utils/RemoteRobotUtils.java b/src/test/java/com/checkmarx/intellij/ui/utils/RemoteRobotUtils.java index 5f859cf0..db7baee9 100644 --- a/src/test/java/com/checkmarx/intellij/ui/utils/RemoteRobotUtils.java +++ b/src/test/java/com/checkmarx/intellij/ui/utils/RemoteRobotUtils.java @@ -2,7 +2,6 @@ import com.intellij.remoterobot.RemoteRobot; import com.intellij.remoterobot.fixtures.ComponentFixture; -import com.intellij.remoterobot.fixtures.JTreeFixture; import com.intellij.remoterobot.search.locators.Locators; import com.intellij.remoterobot.utils.UtilsKt; import org.intellij.lang.annotations.Language; @@ -42,12 +41,4 @@ public static List findAll(@Language("XPath") String xpath) { public static List findAll(Class cls, @Language("XPath") String xpath) { return remoteRobot.findAll(cls, Locators.byXpath(xpath)); } - - public static List getInspectedProblems() { - // Navigate to the "Problems" tool window - remoteRobot.find(ComponentFixture.class, Locators.byXpath("//div[@class='StripeButton' and @text='Problems']")).click(); - - // Retrieve the list of problems - return remoteRobot.findAll(ComponentFixture.class, Locators.byXpath("//div[@class='EditorNotificationPanel']")); - } }