Class CreateCloseUtils


  • public class CreateCloseUtils
    extends java.lang.Object
    Project creation utilities
    • Field Detail

      • PROJECT_LOCATION

        public static final java.lang.String PROJECT_LOCATION
    • Constructor Detail

      • CreateCloseUtils

        public CreateCloseUtils()
    • Method Detail

      • createNewProject

        public static void createNewProject​(com.intellij.remoterobot.RemoteRobot remoteRobot,
                                            java.lang.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,
                                              java.lang.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,
                                                        java.lang.String projectName)
        Open existing project from the Welcome Dialog
        Parameters:
        remoteRobot - reference to the RemoteRobot instance
        projectName - name of existing project