mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
gui-tests-framework: rename ListPopupFixture to JBListPopupFixture
This commit is contained in:
-1
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.tests.gui.fixtures.DialogFixtures;
|
||||
|
||||
import com.intellij.find.impl.FindDialog;
|
||||
import com.intellij.ide.actions.CreateFileFromTemplateDialog;
|
||||
import com.intellij.tests.gui.fixtures.IdeaDialogFixture;
|
||||
import com.intellij.tests.gui.framework.GuiTests;
|
||||
|
||||
+7
-7
@@ -34,23 +34,23 @@ import static org.fest.swing.timing.Pause.pause;
|
||||
/**
|
||||
* Created by jetbrains on 29/08/16.
|
||||
*/
|
||||
public class ListPopupFixture extends JComponentFixture<ListPopupFixture, JBList> {
|
||||
public class JBListPopupFixture extends JComponentFixture<JBListPopupFixture, JBList> {
|
||||
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.tests.gui.fixtures.ListPopupFixture");
|
||||
private static final Logger LOG = Logger.getInstance("#com.intellij.tests.gui.fixtures.JBListPopupFixture");
|
||||
|
||||
private JBList myJBList;
|
||||
private Robot myRobot;
|
||||
|
||||
private ListPopupFixture(JBList jbList, Robot robot) {
|
||||
super(ListPopupFixture.class, robot, jbList);
|
||||
private JBListPopupFixture(JBList jbList, Robot robot) {
|
||||
super(JBListPopupFixture.class, robot, jbList);
|
||||
|
||||
myJBList = jbList;
|
||||
myRobot = robot;
|
||||
}
|
||||
|
||||
public static ListPopupFixture findListPopup(Robot robot) {
|
||||
public static JBListPopupFixture findListPopup(Robot robot) {
|
||||
|
||||
pause(new Condition("Find list popup") {
|
||||
pause(new Condition("Find JBList popup") {
|
||||
@Override
|
||||
public boolean test() {
|
||||
final JBList jblist = getList(robot);
|
||||
@@ -61,7 +61,7 @@ public class ListPopupFixture extends JComponentFixture<ListPopupFixture, JBList
|
||||
final JBList jblist = getList(robot);
|
||||
Assert.assertNotNull(jblist);
|
||||
|
||||
return new ListPopupFixture(jblist, robot);
|
||||
return new JBListPopupFixture(jblist, robot);
|
||||
}
|
||||
|
||||
private static JBList getList(Robot robot) {
|
||||
@@ -43,7 +43,7 @@ class GitGuiTest : GuiTestCase() {
|
||||
|
||||
val welcomeFrame = WelcomeFrameFixture.find(myRobot)
|
||||
welcomeFrame.checkoutFrom()
|
||||
ListPopupFixture.findListPopup(myRobot).invokeAction(vcsName)
|
||||
JBListPopupFixture.findListPopup(myRobot).invokeAction(vcsName)
|
||||
|
||||
val cloneVcsDialog = DialogFixture(myRobot, IdeaDialogFixture.find(myRobot, CloneDvcsDialog::class.java).dialog) //don't miss robot as the first argument or you'll stuck with a deadlock
|
||||
with(cloneVcsDialog) {
|
||||
|
||||
@@ -66,11 +66,11 @@ public class JavaEEProjectTest extends GuiTestCase {
|
||||
//select project type and framework
|
||||
newProjectWizard.
|
||||
selectProjectType("Java").
|
||||
selectFramework("JavaEE Persistence");
|
||||
selectFramework("JavaEE Persistence").
|
||||
clickNext().
|
||||
setProjectName(projectName).
|
||||
clickFinish();
|
||||
|
||||
newProjectWizard.clickNext();
|
||||
|
||||
newProjectWizard.setProjectName(projectName);
|
||||
final File locationInFileSystem = newProjectWizard.getLocationInFileSystem();
|
||||
newProjectWizard.clickFinish();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user