Class CreateCloseUtils
- java.lang.Object
-
- com.redhat.devtools.intellij.commonuitest.utils.project.CreateCloseUtils
-
public class CreateCloseUtils extends java.lang.ObjectProject creation utilities
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateCloseUtils.NewProjectTypeEnumeration for new project type
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPROJECT_LOCATION
-
Constructor Summary
Constructors Constructor Description CreateCloseUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseProject(com.intellij.remoterobot.RemoteRobot remoteRobot)Close currently opened projectstatic voidcreateEmptyProject(com.intellij.remoterobot.RemoteRobot remoteRobot, java.lang.String projectName)Create new empty type project with given project namestatic voidcreateNewProject(com.intellij.remoterobot.RemoteRobot remoteRobot, java.lang.String projectName, CreateCloseUtils.NewProjectType newProjectType)Create new project with given project name according to given project typestatic AbstractNewProjectFinalPagegetFinalPage(NewProjectDialogWizard newProjectDialogWizard, CreateCloseUtils.NewProjectType newProjectType)Get appropriate final page instancestatic NewProjectDialogWizardopenNewProjectDialogFromWelcomeDialog(com.intellij.remoterobot.RemoteRobot remoteRobot)Open 'New Project' dialog from 'Welcome to IntelliJ IDEA' dialogstatic voidopenProjectFromWelcomeDialog(com.intellij.remoterobot.RemoteRobot remoteRobot, java.lang.String projectName)Open existing project from the Welcome Dialogstatic voidwaitAfterOpeningProject(com.intellij.remoterobot.RemoteRobot remoteRobot)Wait after opening project for a complete import, also maximizing window
-
-
-
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 instanceprojectName- name of new projectnewProjectType- 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 instanceprojectName- 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 instanceprojectName- 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 fixturenewProjectType- type of new project- Returns:
- final page instance
-
-