Skip to content

Commit

Permalink
Changed quarkus project location due to updates in test-library 0.4.2
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Korniienko <[email protected]>
  • Loading branch information
olkornii committed Oct 16, 2024
1 parent 37ccade commit cc3f0db
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/it/java/org/jboss/tools/intellij/quarkus/tests/BasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;


import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.time.Duration;

import static com.intellij.remoterobot.search.locators.Locators.byXpath;
Expand Down Expand Up @@ -115,6 +121,18 @@ private void createQuarkusProject(RemoteRobot remoteRobot, String projectName, B

QuarkusNewProjectFinalPage quarkusNewProjectFinalPage = newProjectDialogWizard.find(QuarkusNewProjectFinalPage.class, Duration.ofSeconds(10));
quarkusNewProjectFinalPage.setProjectName(projectName);

String QUARKUS_PROJECT_LOCATION = CreateCloseUtils.PROJECT_LOCATION + File.separator + projectName;
Path quarkusProjectDir = Paths.get(QUARKUS_PROJECT_LOCATION);
boolean doesProjectDirExists = Files.exists(quarkusProjectDir);
if (!doesProjectDirExists) {
try {
Files.createDirectories(quarkusProjectDir); // create project directory with project name to prevent "Do you want Eclipse to create new directory..." popup
} catch (IOException e) {
throw new RuntimeException(e);
}
}

newProjectDialogWizard.finish();

minimizeProjectImportPopupIfItAppears();
Expand Down

0 comments on commit cc3f0db

Please sign in to comment.