Search in sources :

Example 6 with EditConfigurationMainPage

use of org.jboss.tools.hibernate.reddeer.console.EditConfigurationMainPage in project jbosstools-hibernate by jbosstools.

the class MappingDiagramTest method prepareMavenProject.

public void prepareMavenProject() {
    importMavenProject(prj);
    DatabaseConfiguration cfg = dbRequirement.getConfiguration();
    DriverDefinitionFactory.createDatabaseDriverDefinition(cfg);
    ConnectionProfileFactory.createConnectionProfile(cfg);
    ProjectConfigurationFactory.setProjectFacetForDB(prj, cfg, jpaVersion);
    KnownConfigurationsView v = new KnownConfigurationsView();
    v.open();
    EditConfigurationShell confShell = v.openConsoleConfiguration(prj);
    EditConfigurationMainPage mainPage = confShell.getMainPage();
    mainPage.setProject(prj);
    mainPage.setType("JPA (jdk 1.5+)");
    mainPage.setDatabaseConnection("[JPA Project Configured Connection]");
    mainPage.setHibernateVersion(hbVersion);
    confShell.ok();
}
Also used : DatabaseConfiguration(org.eclipse.reddeer.requirements.db.DatabaseConfiguration) EditConfigurationShell(org.jboss.tools.hibernate.reddeer.console.EditConfigurationShell) EditConfigurationMainPage(org.jboss.tools.hibernate.reddeer.console.EditConfigurationMainPage) KnownConfigurationsView(org.jboss.tools.hibernate.reddeer.console.views.KnownConfigurationsView)

Aggregations

EditConfigurationMainPage (org.jboss.tools.hibernate.reddeer.console.EditConfigurationMainPage)6 EditConfigurationShell (org.jboss.tools.hibernate.reddeer.console.EditConfigurationShell)6 KnownConfigurationsView (org.jboss.tools.hibernate.reddeer.console.views.KnownConfigurationsView)6 DatabaseConfiguration (org.eclipse.reddeer.requirements.db.DatabaseConfiguration)3 ContextMenuItem (org.eclipse.reddeer.swt.impl.menu.ContextMenuItem)3 TreeItem (org.eclipse.reddeer.swt.api.TreeItem)2 HQLEditor (org.jboss.tools.hibernate.reddeer.hqleditor.HQLEditor)2 Test (org.junit.Test)2 WaitTimeoutExpiredException (org.eclipse.reddeer.common.exception.WaitTimeoutExpiredException)1 WaitWhile (org.eclipse.reddeer.common.wait.WaitWhile)1 ContentAssistant (org.eclipse.reddeer.jface.text.contentassist.ContentAssistant)1 JobIsRunning (org.eclipse.reddeer.workbench.core.condition.JobIsRunning)1 QueryPageTabView (org.jboss.tools.hibernate.reddeer.console.views.QueryPageTabView)1