java.lang.Object
com.redhat.devtools.intellij.commonuitest.utils.project.CreateCloseUtils

public class CreateCloseUtils extends Object
Project creation utilities
  • Constructor Details

    • CreateCloseUtils

      public CreateCloseUtils()
  • Method Details

    • createNewProject

      public static void createNewProject(com.intellij.remoterobot.RemoteRobot remoteRobot, String projectName, CreateCloseUtils.NewProjectType newProjectType)
      Create new project with given project name according to given project type
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
      projectName - name of new project
      newProjectType - type of new project
    • createEmptyProject

      public static void createEmptyProject(com.intellij.remoterobot.RemoteRobot remoteRobot, String projectName)
      Create new empty type project with given project name
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
      projectName - name of new project
    • waitAfterOpeningProject

      public static void waitAfterOpeningProject(com.intellij.remoterobot.RemoteRobot remoteRobot)
      Wait after opening project for a complete import, also maximizing window
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
    • openNewProjectDialogFromWelcomeDialog

      public static NewProjectDialogWizard openNewProjectDialogFromWelcomeDialog(com.intellij.remoterobot.RemoteRobot remoteRobot)
      Open 'New Project' dialog from 'Welcome to IntelliJ IDEA' dialog
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
      Returns:
      NewProjectDialogWizard fixture
    • closeProject

      public static void closeProject(com.intellij.remoterobot.RemoteRobot remoteRobot)
      Close currently opened project
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
    • openProjectFromWelcomeDialog

      public static void openProjectFromWelcomeDialog(com.intellij.remoterobot.RemoteRobot remoteRobot, String projectName)
      Open existing project from the Welcome Dialog
      Parameters:
      remoteRobot - reference to the RemoteRobot instance
      projectName - name of existing project
    • getFinalPage

      public static AbstractNewProjectFinalPage getFinalPage(NewProjectDialogWizard newProjectDialogWizard, CreateCloseUtils.NewProjectType newProjectType)
      Get appropriate final page instance
      Parameters:
      newProjectDialogWizard - instance of the 'New Project' dialog fixture
      newProjectType - type of new project
      Returns:
      final page instance