Skip to content

Commit

Permalink
update java wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
BenAlvo1 committed Nov 5, 2024
1 parent 9d82087 commit caf1316
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 0 additions & 8 deletions src/test/java/com/checkmarx/intellij/ui/TestAsca.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -42,12 +41,4 @@ public static List<ComponentFixture> findAll(@Language("XPath") String xpath) {
public static <T extends ComponentFixture> List<T> findAll(Class<T> cls, @Language("XPath") String xpath) {
return remoteRobot.findAll(cls, Locators.byXpath(xpath));
}

public static List<ComponentFixture> 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']"));
}
}

0 comments on commit caf1316

Please sign in to comment.