Search in sources :

Example 31 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class CreateApplicationOnBuilderImageTest method tearDown.

@After
public void tearDown() {
    OpenShiftExplorerView explorer = new OpenShiftExplorerView();
    explorer.reopen();
    OpenShift3Connection connection = explorer.getOpenShift3Connection(connectionReq.getConnection());
    connection.getProject().delete();
    ProjectExplorer projectExplorer = new ProjectExplorer();
    if (projectExplorer.containsProject(projectName)) {
        projectExplorer.getProject(projectName).delete();
    }
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) OpenShiftExplorerView(org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView) OpenShift3Connection(org.jboss.tools.openshift.reddeer.view.resources.OpenShift3Connection) After(org.junit.After)

Example 32 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-openshift by jbosstools.

the class ImportApplicationWizardTest method assertProjectExistsInProjectView.

private void assertProjectExistsInProjectView(String projectName) {
    ProjectExplorer projectExplorer = new ProjectExplorer();
    projectExplorer.open();
    assertTrue("Project '" + projectName + "' was not found in the project explorer!", projectExplorer.containsProject(projectName));
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)

Example 33 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.

the class JBossDatasourceTest method jbossDatasourceTest.

@Test
public void jbossDatasourceTest() {
    DatabaseConfiguration cfg = dbRequirement.getConfiguration();
    NewDSXMLWizard wizard = new NewDSXMLWizard();
    wizard.open();
    WizardNewDSXMLFileCreationPage page = new WizardNewDSXMLFileCreationPage(wizard);
    page.setConnectionProfile(cfg.getProfileName());
    page.setParentFolder("/" + PRJ + "/src/main/resources");
    wizard.finish();
    String dsFileName = cfg.getProfileName() + "-ds.xml";
    assertFalse(new DefaultEditor(dsFileName).isDirty());
    ProjectExplorer pe = new ProjectExplorer();
    pe.open();
    assertTrue(pe.getProject(PRJ).containsResource("src", "main", "resources", dsFileName));
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) DatabaseConfiguration(org.eclipse.reddeer.requirements.db.DatabaseConfiguration) NewDSXMLWizard(org.jboss.tools.hibernate.reddeer.wizard.NewDSXMLWizard) WizardNewDSXMLFileCreationPage(org.jboss.tools.hibernate.reddeer.wizard.WizardNewDSXMLFileCreationPage) DefaultEditor(org.eclipse.reddeer.workbench.impl.editor.DefaultEditor) Test(org.junit.Test)

Example 34 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.

the class MappingFileTest method containsItem.

private boolean containsItem(String pckg, String item) {
    ProjectExplorer pe = new ProjectExplorer();
    pe.open();
    if (pe.getProject(PRJ).containsResource("Java Resources")) {
        return pe.getProject(PRJ).containsResource("Java Resources", "src/main/java", pckg, item);
    }
    return pe.getProject(PRJ).containsResource("src/main/java", pckg, item);
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)

Example 35 with ProjectExplorer

use of org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer in project jbosstools-hibernate by jbosstools.

the class MappingFileTest method createMappingFilePackageWithNoConfig.

// JBIDE-21766
@Test
public void createMappingFilePackageWithNoConfig() {
    ProjectExplorer pe = new ProjectExplorer();
    pe.open();
    PropertyDialog pd = pe.getProject(PRJ).openProperties();
    pd.select("Hibernate Settings");
    new DefaultCombo(pd).setSelection("<None>");
    pd.ok();
    createMappingFileFromPackage();
}
Also used : ProjectExplorer(org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer) DefaultCombo(org.eclipse.reddeer.swt.impl.combo.DefaultCombo) PropertyDialog(org.eclipse.reddeer.eclipse.ui.dialogs.PropertyDialog) Test(org.junit.Test)

Aggregations

ProjectExplorer (org.eclipse.reddeer.eclipse.ui.navigator.resources.ProjectExplorer)41 Test (org.junit.Test)12 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)10 WaitUntil (org.eclipse.reddeer.common.wait.WaitUntil)8 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)8 File (java.io.File)6 DefaultShell (org.eclipse.reddeer.swt.impl.shell.DefaultShell)6 PropertyDialog (org.eclipse.reddeer.eclipse.ui.dialogs.PropertyDialog)5 ShellIsAvailable (org.eclipse.reddeer.swt.condition.ShellIsAvailable)5 IOException (java.io.IOException)4 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)4 OpenShiftExplorerView (org.jboss.tools.openshift.reddeer.view.OpenShiftExplorerView)4 AbstractTest (org.jboss.tools.openshift.ui.bot.test.application.v3.basic.AbstractTest)4 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)3 FinishButton (org.eclipse.reddeer.swt.impl.button.FinishButton)3 NextButton (org.eclipse.reddeer.swt.impl.button.NextButton)3 OkButton (org.eclipse.reddeer.swt.impl.button.OkButton)3 TextEditor (org.eclipse.reddeer.workbench.impl.editor.TextEditor)3 AfterClass (org.junit.AfterClass)3 Before (org.junit.Before)3