Search in sources :

Example 1 with WizardDialog

use of org.eclipse.reddeer.jface.wizard.WizardDialog in project jbosstools-openshift by jbosstools.

the class AbstractOpenShiftWizardPageTest method setUp.

@Before
public void setUp() {
    this.wizard = new OpenShiftEventTestWizard();
    Shell shell = new WorkbenchShell().getSWTWidget();
    Display.asyncExec(new Runnable() {

        @Override
        public void run() {
            org.eclipse.jface.wizard.WizardDialog dialog = new org.eclipse.jface.wizard.WizardDialog(shell, wizard);
            dialog.create();
            dialog.open();
        }
    });
    new WaitUntil(new ShellIsAvailable(OpenShiftEventTestWizard.TITLE));
    wizardBot = new WizardDialog();
}
Also used : ShellIsAvailable(org.eclipse.reddeer.swt.condition.ShellIsAvailable) DefaultShell(org.eclipse.reddeer.swt.impl.shell.DefaultShell) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) Shell(org.eclipse.swt.widgets.Shell) WorkbenchShell(org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell) WaitUntil(org.eclipse.reddeer.common.wait.WaitUntil) WizardDialog(org.eclipse.reddeer.jface.wizard.WizardDialog) Before(org.junit.Before)

Aggregations

WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)1 WizardDialog (org.eclipse.reddeer.jface.wizard.WizardDialog)1 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)1 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)1 WorkbenchShell (org.eclipse.reddeer.workbench.impl.shell.WorkbenchShell)1 Shell (org.eclipse.swt.widgets.Shell)1 Before (org.junit.Before)1