From f686b736710f56d986119be596cc9ccfb61c092d Mon Sep 17 00:00:00 2001 From: Oleksii Korniienko Date: Tue, 8 Oct 2024 12:49:52 +0200 Subject: [PATCH] Overwrited set/getProjectLocation for Quarkus new project view Signed-off-by: Oleksii Korniienko --- .../project/pages/QuarkusNewProjectFinalPage.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/it/java/org/jboss/tools/intellij/quarkus/fixtures/dialogs/project/pages/QuarkusNewProjectFinalPage.java b/src/it/java/org/jboss/tools/intellij/quarkus/fixtures/dialogs/project/pages/QuarkusNewProjectFinalPage.java index 284996d8c..a18220fc7 100644 --- a/src/it/java/org/jboss/tools/intellij/quarkus/fixtures/dialogs/project/pages/QuarkusNewProjectFinalPage.java +++ b/src/it/java/org/jboss/tools/intellij/quarkus/fixtures/dialogs/project/pages/QuarkusNewProjectFinalPage.java @@ -46,4 +46,19 @@ public void setProjectName(String projectName) { super.setProjectName(projectName); } } + + @Override + public String getProjectLocation() { + return find(JTextFieldFixture.class, byXpath("//div[@accessiblename='Project location:' and @class='JTextField']")).getText(); + } + + /** + * Set the project location for new project in the 'New Project' Quarkus dialog + * + * @param projectLocation project location of the new project + */ + @Override + public void setProjectLocation(String projectLocation) { + find(JTextFieldFixture.class, byXpath("//div[@accessiblename='Project location:' and @class='JTextField']")).setText(projectLocation); + } } \ No newline at end of file